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 ); // 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' ] ); } }