芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/clients/_asap-ingenierie.fr/wp-content/plugins/boxzilla/bootstrap.php
register( $boxzilla ); $provider = new Licensing\LicenseServiceProvider(); $provider->register( $boxzilla ); // Rest of bootstrapping runs at plugins_loaded:90 add_action( 'plugins_loaded', function() use( $boxzilla ) { // load default filters require __DIR__ . '/src/default-filters.php'; require __DIR__ . '/src/default-actions.php'; $bootstrapper = $boxzilla->bootstrapper; $bootstrapper->admin(function() use( $boxzilla ){ $boxzilla['admin']->init(); }); $bootstrapper->ajax(function() use( $boxzilla ) { $boxzilla['filter.autocomplete']->add_hooks(); }); $bootstrapper->front(function() use( $boxzilla ) { add_action( 'template_redirect', function() use( $boxzilla ) { $boxzilla['box_loader']->init(); }); }); $bootstrapper->cron(function() use( $boxzilla ) { $boxzilla['license_poller']->hook(); }); // license manager if( is_admin() || ( defined( 'DOING_CRON' ) && DOING_CRON ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) { $boxzilla['license_manager']->hook(); if( count( $boxzilla->plugins ) > 0 ) { $boxzilla['update_manager']->hook(); } } $bootstrapper->run(); }, 90 );