s->add_component( 'import_export_import', new ImportExportCustomization\Import() );
$this->add_component( 'import_export_export', new ImportExportCustomization\Export() );
$this->add_component( 'import_export_revert', new ImportExportCustomization\Revert() );
$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' ] );
add_filter( 'elementor/import-export-customization/export/templates_data', [ $this->get_component( 'import_export_export' ), 'add_theme_builder_to_export' ], 10, 3 );
add_filter( 'elementor/import-export-customization/import/templates_result', [ $this->get_component( 'import_export_import' ), 'add_theme_builder_to_import' ], 10, 4 );
add_action( 'elementor/import-export-customization/revert/templates', [ $this->get_component( 'import_export_revert' ), 'revert_theme_builder_templates_conditions' ], 10, 1 );
}
}
Fatal error: Uncaught Error: Class 'ElementorPro\Modules\ThemeBuilder\Module' not found in /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor-pro/core/app/modules/site-editor/module.php:205
Stack trace:
#0 /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor-pro/core/app/app.php(128): ElementorPro\Core\App\Modules\SiteEditor\Module->__construct()
#1 /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor-pro/plugin.php(476): ElementorPro\Core\App\App->__construct()
#2 /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor-pro/plugin.php(140): ElementorPro\Plugin->__construct()
#3 /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor-pro/plugin.php(518): ElementorPro\Plugin::instance()
#4 /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor-pro/elementor-pro.php(155): require('/var/www/html/d...')
#5 /var/www/html/dportilho.com.br/web/wp-includes/class-wp-hook.php(341): elementor_pro_load_plugin('')
#6 /var/www/html/dportilho.com.br/web/wp-includes/class-wp-hook in /var/www/html/dportilho.com.br/web/wp-content/plugins/elementor-pro/core/app/modules/site-editor/module.php on line 205