hooks(); return; } // Load the bundled Action Scheduler before WordPress fires its own plugins_loaded bootstrap. $fssl_as = FSSL_PATH . 'vendor/woocommerce/action-scheduler/action-scheduler.php'; if (file_exists($fssl_as)) { require_once $fssl_as; } // On PHP 7.4 a failed require is a fatal error no catch can see, so a missing file is thrown here. if (! is_readable(FSSL_PATH . 'config/app.php')) { throw new RuntimeException('Missing file: config/app.php'); } $fssl_config = [ 'app' => require FSSL_PATH . 'config/app.php', ]; (new ScriptLedger\App\Application($fssl_config))->boot(); } catch (Throwable $fssl_error) { // Say so where plugins are managed, translated once WordPress can load translations. $fssl_boot_error = get_class($fssl_error) . ': ' . $fssl_error->getMessage(); $fssl_boot_error = mb_substr($fssl_boot_error, 0, 300); if (function_exists('add_action')) { $fssl_boot_notice = static function () use ($fssl_boot_error) { $onPlugins = isset($GLOBALS['pagenow']) && $GLOBALS['pagenow'] === 'plugins.php'; if (! $onPlugins || ! current_user_can('activate_plugins')) { return; } printf( '
%s
%s