ExtraChill API Plugin Core
Singleton Bootstrap
ExtraChill_API_Plugin::get_instance()loads the plugin once and keeps all REST routes centralized.- Constructor loads every PHP file within
inc/routes/viaRecursiveIteratorIteratorso each endpoint can self-register. - Hooks:
plugins_loaded→boot()includes cross-domain auth helper and firesextrachill_api_bootstrapfor integrators.rest_api_init→register_routes()firesextrachill_api_register_routes, giving every route file a single action to latch onto.
Autoloading
plugins_loaded→boot()includes cross-domain auth helper and firesextrachill_api_bootstrapfor integrators.rest_api_init→register_routes()firesextrachill_api_register_routes, giving every route file a single action to latch onto.
Cross-Domain Auth Helper
plugins_loaded→boot()includes cross-domain auth helper and firesextrachill_api_bootstrapfor integrators.rest_api_init→register_routes()firesextrachill_api_register_routes, giving every route file a single action to latch onto.
Shop Operations
Centralized endpoints for the artist marketplace on shop.extrachill.com.
- Composer autoloader is loaded if
vendor/autoload.phpexists to expose third-party libraries (Endroid QR Code). - Constants
EXTRACHILL_API_PATHandEXTRACHILL_API_URLallow other modules to resolve assets relative to the plugin location.