PluginProbe
Elementor Website Builder – more than just a page builder / 3.34.1
Elementor Website Builder – more than just a page builder v3.34.1
4.3.0-beta3 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 All 452 releases
← All changes | modules/editor-one/classes/menu-config.php +5 -27 4.2.33.34.1 View file →
@@ -7,9 +7,8 @@
7 7 }
8 8
9 9 class Menu_Config {
10 10 const ELEMENTOR_MENU_SLUG = 'elementor';
11 - const ELEMENTOR_HOME_MENU_SLUG = 'elementor-home';
12 11 const EDITOR_MENU_SLUG = 'elementor-editor';
13 12 const TEMPLATES_GROUP_ID = 'elementor-editor-templates';
14 13 const SETTINGS_GROUP_ID = 'elementor-editor-settings';
15 14 const EDITOR_GROUP_ID = 'elementor-editor-items';
@@ -14,13 +13,9 @@
14 13 const SETTINGS_GROUP_ID = 'elementor-editor-settings';
15 14 const EDITOR_GROUP_ID = 'elementor-editor-items';
16 15 const CUSTOM_ELEMENTS_GROUP_ID = 'elementor-editor-custom-elements';
17 16 const SYSTEM_GROUP_ID = 'elementor-editor-system';
18 - const THIRD_PARTY_GROUP_ID = 'elementor-editor-third-party';
19 17 const LEGACY_TEMPLATES_SLUG = 'edit.php?post_type=elementor_library';
20 - const CAPABILITY_EDIT_POSTS = 'edit_posts';
21 - const CAPABILITY_MANAGE_OPTIONS = 'manage_options';
22 - const MENU_POSITION = 58.5;
23 18 public static function get_excluded_level4_slugs(): array {
24 19 // add new which is automatically added to templates and categories
25 20 $default_slugs = [
26 21 'edit-tags.php?taxonomy=elementor_library_category&post_type=elementor_library',
@@ -27,9 +22,8 @@
27 22 ];
28 23
29 24 return apply_filters( 'elementor/editor-one/menu/excluded_level4_slugs', $default_slugs );
30 25 }
31 -
32 26 public static function get_excluded_level3_slugs(): array {
33 27 // elementor pro slugs
34 28 $default_slugs = [
35 29 'elementor-theme-builder',
@@ -39,29 +33,19 @@
39 33
40 34 return apply_filters( 'elementor/editor-one/menu/excluded_level3_slugs', $default_slugs );
41 35 }
42 36
43 - public static function get_excluded_flyout_menu_level3_slugs(): array {
44 - $default_slugs = [
45 - 'e-form-submissions',
46 - ];
47 -
48 - return apply_filters( 'elementor/editor-one/menu/excluded_flyout_menu_level3_slugs', $default_slugs );
49 - }
50 -
51 -
52 37 public static function get_legacy_slug_mapping(): array {
53 38 $default_mapping = [
54 39 self::LEGACY_TEMPLATES_SLUG => self::TEMPLATES_GROUP_ID,
40 + self::ELEMENTOR_MENU_SLUG => self::EDITOR_GROUP_ID,
55 41 ];
56 42
57 43 return apply_filters( 'elementor/editor-one/menu/legacy_slug_mapping', $default_mapping );
58 44 }
59 -
60 45 public static function get_legacy_pro_mapping(): array {
61 46 $default_mapping = [
62 47 'elementor-license' => [ 'group' => self::SYSTEM_GROUP_ID ],
63 - 'e-form-submissions' => [ 'group' => self::EDITOR_GROUP_ID ],
64 48 'edit.php?post_type=elementor_font' => [
65 49 'group' => self::CUSTOM_ELEMENTS_GROUP_ID,
66 50 'label' => __( 'Fonts', 'elementor' ),
67 51 ],
@@ -88,13 +72,12 @@
88 72 ];
89 73
90 74 return apply_filters( 'elementor/editor-one/menu/legacy_pro_mapping', $default_mapping );
91 75 }
92 -
93 76 public static function get_attribute_mapping(): array {
94 77 $default_mapping = [
95 78 'e-form-submissions' => [
96 - 'position' => 70,
79 + 'position' => 50,
97 80 'icon' => 'send',
98 81 ],
99 82 ];
100 83
@@ -99,9 +82,8 @@
99 82 ];
100 83
101 84 return apply_filters( 'elementor/editor-one/menu/position_mapping', $default_mapping );
102 85 }
103 -
104 86 public static function get_custom_code_url(): string {
105 87 $pro_custom_code_cpt = 'elementor_snippet';
106 88
107 89 if ( post_type_exists( $pro_custom_code_cpt ) ) {
@@ -112,25 +94,21 @@
112 94
113 95 return apply_filters( 'elementor/editor-one/menu/custom_code_url', $default_url );
114 96 }
115 97
116 - public static function get_elementor_home_url(): string {
117 - return admin_url( 'admin.php?page=' . self::ELEMENTOR_MENU_SLUG );
118 - }
119 -
120 98 public static function get_elementor_post_types(): array {
121 99 $default_values = [
122 100 'elementor_icons' => [
123 101 'menu_slug' => 'elementor-custom-elements',
124 - 'child_slug' => 'edit.php?post_type=elementor_icons',
102 + 'child_slug' => 'custom-icons',
125 103 ],
126 104 'elementor_font' => [
127 105 'menu_slug' => 'elementor-custom-elements',
128 - 'child_slug' => 'edit.php?post_type=elementor_font',
106 + 'child_slug' => 'custom-fonts',
129 107 ],
130 108 'elementor_snippet' => [
131 109 'menu_slug' => 'elementor-custom-elements',
132 - 'child_slug' => 'edit.php?post_type=elementor_snippet',
110 + 'child_slug' => 'custom-code',
133 111 ],
134 112 ];
135 113
136 114 return apply_filters( 'elementor/editor-one/menu/elementor_post_types', $default_values );