PluginProbe ʕ •ᴥ•ʔ
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF / trunk
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF vtrunk
2.0.5 trunk 1.3.7 1.4.0 1.4.1 1.4.2 1.4.6 1.5.0 1.5.3 1.5.6 1.5.8 1.6.5 1.6.6 1.6.9 1.7.0 1.7.4 1.8.1 1.8.2 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4
robin-image-optimizer / libs / factory / bootstrap / boot.php
robin-image-optimizer / libs / factory / bootstrap Last commit date
assets 5 months ago includes 5 months ago boot.php 5 months ago index.php 5 months ago
boot.php
46 lines
1 <?php
2 /**
3 * Factory Bootstrap
4 *
5 * @since 1.0.0
6 * @package factory-bootstrap
7 */
8
9 // Exit if accessed directly
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13
14 // module provides function only for the admin area
15 if ( ! is_admin() ) {
16 return;
17 }
18
19 if ( defined( 'FACTORY_BOOTSTRAP_500_LOADED' ) ) {
20 return;
21 }
22
23 define( 'FACTORY_BOOTSTRAP_500_VERSION', '5.0.2' );
24
25 define( 'FACTORY_BOOTSTRAP_500_LOADED', true );
26
27 if ( ! defined( 'FACTORY_FLAT_ADMIN' ) ) {
28 define( 'FACTORY_FLAT_ADMIN', true );
29 }
30
31 define( 'FACTORY_BOOTSTRAP_500_DIR', __DIR__ );
32 define( 'FACTORY_BOOTSTRAP_500_URL', plugins_url( '', __FILE__ ) );
33
34 require_once FACTORY_BOOTSTRAP_500_DIR . '/includes/functions.php';
35
36 /**
37 * @param Wbcr_Factory600_Plugin $plugin
38 */
39 add_action(
40 'wbcr_factory_bootstrap_500_plugin_created',
41 function ( $plugin ) {
42 $manager = new Wbcr_FactoryBootstrap500_Manager( $plugin );
43 $plugin->setBootstap( $manager );
44 }
45 );
46