includes/Config.php * OST\EditorialWorkflow\Admin\Settings -> includes/Admin/Settings.php */ spl_autoload_register( static function ( $class_name ) { $prefix = 'OST\\EditorialWorkflow\\'; $len = strlen( $prefix ); if ( 0 !== strncmp( $prefix, $class_name, $len ) ) { return; } $relative = substr( $class_name, $len ); $path = OSTEW_DIR . 'includes/' . str_replace( '\\', '/', $relative ) . '.php'; if ( is_readable( $path ) ) { require $path; } } ); // Composer autoload if present (dev tooling); harmless in production if absent. if ( is_readable( OSTEW_DIR . 'vendor/autoload.php' ) ) { require OSTEW_DIR . 'vendor/autoload.php'; } register_activation_hook( __FILE__, array( \OST\EditorialWorkflow\Plugin::class, 'activate' ) ); register_deactivation_hook( __FILE__, array( \OST\EditorialWorkflow\Plugin::class, 'deactivate' ) ); add_action( 'plugins_loaded', static function () { \OST\EditorialWorkflow\Plugin::instance()->boot(); } );