PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.2
Elementor Website Builder – more than just a page builder v3.32.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | core/common/modules/connect/admin.php +9 -7 4.2.13.32.2 View file →
@@ -4,10 +4,8 @@
4 4 use Elementor\Core\Admin\Menu\Admin_Menu_Manager;
5 5 use Elementor\Plugin;
6 6 use Elementor\Settings;
7 7 use Elementor\Utils;
8 -use Elementor\Modules\EditorOne\Classes\Menu_Data_Provider;
9 -use Elementor\Core\Common\Modules\Connect\AdminMenuItems\Editor_One_Connect_Menu;
10 8
11 9 if ( ! defined( 'ABSPATH' ) ) {
12 10 exit; // Exit if accessed directly.
13 11 }
@@ -41,10 +39,14 @@
41 39
42 40 return $validated;
43 41 }
44 42
45 - public function register_editor_one_menu( Menu_Data_Provider $menu_data_provider ) {
46 - $menu_data_provider->register_menu( new Editor_One_Connect_Menu() );
43 + /**
44 + * @since 2.3.0
45 + * @access public
46 + */
47 + public function register_admin_menu( Admin_Menu_Manager $admin_menu ) {
48 + $admin_menu->register( static::PAGE_ID, new Connect_Menu_Item() );
47 49 }
48 50
49 51 /**
50 52 * @since 2.3.0
@@ -111,13 +113,13 @@
111 113 */
112 114 public function __construct() {
113 115 self::$url = admin_url( 'admin.php?page=' . self::PAGE_ID );
114 116
115 - add_action( 'elementor/editor-one/menu/register', [ $this, 'register_editor_one_menu' ] );
117 + add_action( 'elementor/admin/menu/register', [ $this, 'register_admin_menu' ] );
116 118
117 - add_action( 'elementor/editor-one/menu/after_register_hidden_submenus', function ( array $hooks ) {
119 + add_action( 'elementor/admin/menu/after_register', function ( Admin_Menu_Manager $admin_menu, array $hooks ) {
118 120 if ( ! empty( $hooks[ static::PAGE_ID ] ) ) {
119 121 add_action( 'load-' . $hooks[ static::PAGE_ID ], [ $this, 'on_load_page' ] );
120 122 }
121 - } );
123 + }, 10, 2 );
122 124 }
123 125 }