/home/techb158/public_html/wp-content/plugins/meta-box/inc
Edit: /home/techb158/public_html/wp-content/plugins/meta-box/inc/loader.php (4516B)
constants();
// PSR-4 autoload.
$psr4_autoload = dirname( __DIR__ ) . '/vendor/autoload.php';
if ( file_exists( $psr4_autoload ) ) {
require $psr4_autoload;
}
// Register autoload for classes.
require_once RWMB_INC_DIR . 'autoloader.php';
$autoloader = new RWMB_Autoloader();
$autoloader->add( RWMB_INC_DIR, 'RW_' );
$autoloader->add( RWMB_INC_DIR, 'RWMB_' );
$autoloader->add( RWMB_INC_DIR . 'about', 'RWMB_' );
$autoloader->add( RWMB_INC_DIR . 'fields', 'RWMB_', '_Field' );
$autoloader->add( RWMB_INC_DIR . 'walkers', 'RWMB_Walker_' );
$autoloader->add( RWMB_INC_DIR . 'interfaces', 'RWMB_', '_Interface' );
$autoloader->add( RWMB_INC_DIR . 'storages', 'RWMB_', '_Storage' );
$autoloader->add( RWMB_INC_DIR . 'helpers', 'RWMB_Helpers_' );
$autoloader->add( RWMB_INC_DIR . 'update', 'RWMB_Update_' );
$autoloader->register();
// Plugin core.
$core = new RWMB_Core();
$core->init();
$shortcode = new RWMB_Shortcode();
$shortcode->init();
// Validation module.
new RWMB_Validation();
$sanitizer = new RWMB_Sanitizer();
$sanitizer->init();
$media_modal = new RWMB_Media_Modal();
$media_modal->init();
// Update.
$update_option = null;
$update_checker = null;
if ( class_exists( '\MetaBox\Updater\Option' ) ) {
$update_option = new \MetaBox\Updater\Option();
$update_checker = new \MetaBox\Updater\Checker( $update_option );
$update_checker->init();
$update_settings = new \MetaBox\Updater\Settings( $update_checker, $update_option );
$update_settings->init();
$update_notification = new \MetaBox\Updater\Notification( $update_checker, $update_option );
$update_notification->init();
}
// WPML Compatibility.
new \MetaBox\Integrations\WPML();
// Abilities API integration (WordPress 6.9+). Bails silently on older versions.
$abilities = new \MetaBox\Abilities();
$abilities->init();
// Register categories for page builders.
new \MetaBox\Integrations\Block();
new \MetaBox\Integrations\Bricks();
new \MetaBox\Integrations\Elementor();
new \MetaBox\Integrations\Oxygen();
if ( is_admin() ) {
new \MetaBox\Dashboard\Dashboard( $update_checker, $update_option );
}
// Public functions.
require_once RWMB_INC_DIR . 'functions.php';
// Block bindings (needs rwmb_get_registry from functions.php).
rwmb_get_registry( 'block_bindings' )->add( new \MetaBox\Integrations\BlockBindings\Post() );
new \MetaBox\Integrations\BlockBindings\Loader();
}
}