:__construct();
require __DIR__ . '/api.php';
$this->add_component( 'theme_support', new Classes\Theme_Support() );
$this->add_component( 'conditions', new Classes\Conditions_Manager() );
$this->add_component( 'templates_types', new Classes\Templates_Types_Manager() );
$this->add_component( 'preview', new Classes\Preview_Manager() );
$this->add_component( 'locations', new Classes\Locations_Manager() );
add_action( 'elementor/controls/register', [ $this, 'register_controls' ] );
// Editor
add_action( 'elementor/editor/init', [ $this, 'on_elementor_editor_init' ] );
add_filter( 'elementor/document/config', [ $this, 'document_config' ], 10, 2 );
add_filter( 'elementor/document/wrapper_attributes', [ $this, 'add_document_attributes' ], 10, 2 );
// Admin
add_action( 'admin_head', [ $this, 'admin_head' ] );
add_filter( 'add_menu_classes', [ $this, 'hide_admin_app_submenu' ], 9 /* Before core submenu fixes */ );
add_action( 'manage_' . Source_Local::CPT . '_posts_custom_column', [ $this, 'admin_columns_content' ], 10, 2 );
add_action( 'elementor/template-library/create_new_dialog_fields', [ $this, 'print_location_field' ] );
add_action( 'elementor/template-library/create_new_dialog_fields', [ $this, 'print_post_type_field' ] );
if ( Plugin::elementor()->experiments->is_feature_active( 'admin_menu_rearrangement' ) ) {
add_action( 'elementor/admin/menu_registered/elementor', function( MainMenu $menu ) {
$this->register_admin_menu( $menu );
} );
} else {
add_action( 'elementor/admin/menu/register', function ( Admin_Menu_Manager $admin_menu ) {
$this->register_admin_menu_legacy( $admin_menu );
}, static::ADMIN_MENU_PRIORITY /* After "Popups" */ );
// TODO: BC - Remove after `Admin_Menu_Manager` will be the standard.
add_action( 'admin_menu', function () {
if ( did_action( 'elementor/admin/menu/register' ) ) {
return;
}
add_submenu_page(
Source_Local::ADMIN_MENU_SLUG,
'',
esc_html__( 'Theme Builder', 'elementor-pro' ),
'publish_posts',
$this->get_admin_templates_url( true )
);
}, 22 /* After core promotion menu */ );
}
add_filter( 'elementor/template-library/create_new_dialog_types', [ $this, 'create_new_dialog_types' ] );
add_filter( 'views_edit-' . Source_Local::CPT, [ $this, 'print_new_theme_builder_promotion' ], 9 );
// Moved into the IE module \ElementorPro\Core\App\Modules\ImportExport\Module::add_actions
// TODO: remove in 3.10.0
add_filter( 'elementor/import/stage_1/result', function ( array $result ) {
return $this->add_conflicts_to_import_result( $result );
});
// Common
add_filter( 'elementor/finder/categories', [ $this, 'add_finder_items' ] );
}
}
Fatal error: Uncaught Error: Class 'ElementorPro\Modules\ThemeBuilder\Module' not found in /home/sportuga/public_html/wp-content/plugins/elementor-pro/core/app/modules/site-editor/module.php:205
Stack trace:
#0 /home/sportuga/public_html/wp-content/plugins/elementor-pro/core/app/app.php(86): ElementorPro\Core\App\Modules\SiteEditor\Module->__construct()
#1 /home/sportuga/public_html/wp-content/plugins/elementor-pro/plugin.php(502): ElementorPro\Core\App\App->__construct()
#2 /home/sportuga/public_html/wp-content/plugins/elementor-pro/plugin.php(139): ElementorPro\Plugin->__construct()
#3 /home/sportuga/public_html/wp-content/plugins/elementor-pro/plugin.php(542): ElementorPro\Plugin::instance()
#4 /home/sportuga/public_html/wp-content/plugins/elementor-pro/elementor-pro.php(68): require('/home/sportuga/...')
#5 /home/sportuga/public_html/wp-includes/class-wp-hook.php(324): elementor_pro_load_plugin('')
#6 /home/sportuga/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#7 /home/sportuga/p in /home/sportuga/public_html/wp-content/plugins/elementor-pro/core/app/modules/site-editor/module.php on line 205