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.1 4.3.0 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 All 454 releases
← All changes | modules/editor-one/classes/menu-config.php +5 -18 4.2.0-dev23.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',
@@ -42,17 +36,16 @@
42 36
43 37 public static function get_legacy_slug_mapping(): array {
44 38 $default_mapping = [
45 39 self::LEGACY_TEMPLATES_SLUG => self::TEMPLATES_GROUP_ID,
40 + self::ELEMENTOR_MENU_SLUG => self::EDITOR_GROUP_ID,
46 41 ];
47 42
48 43 return apply_filters( 'elementor/editor-one/menu/legacy_slug_mapping', $default_mapping );
49 44 }
50 -
51 45 public static function get_legacy_pro_mapping(): array {
52 46 $default_mapping = [
53 47 'elementor-license' => [ 'group' => self::SYSTEM_GROUP_ID ],
54 - 'e-form-submissions' => [ 'group' => self::EDITOR_GROUP_ID ],
55 48 'edit.php?post_type=elementor_font' => [
56 49 'group' => self::CUSTOM_ELEMENTS_GROUP_ID,
57 50 'label' => __( 'Fonts', 'elementor' ),
58 51 ],
@@ -79,13 +72,12 @@
79 72 ];
80 73
81 74 return apply_filters( 'elementor/editor-one/menu/legacy_pro_mapping', $default_mapping );
82 75 }
83 -
84 76 public static function get_attribute_mapping(): array {
85 77 $default_mapping = [
86 78 'e-form-submissions' => [
87 - 'position' => 70,
79 + 'position' => 50,
88 80 'icon' => 'send',
89 81 ],
90 82 ];
91 83
@@ -90,9 +82,8 @@
90 82 ];
91 83
92 84 return apply_filters( 'elementor/editor-one/menu/position_mapping', $default_mapping );
93 85 }
94 -
95 86 public static function get_custom_code_url(): string {
96 87 $pro_custom_code_cpt = 'elementor_snippet';
97 88
98 89 if ( post_type_exists( $pro_custom_code_cpt ) ) {
@@ -103,25 +94,21 @@
103 94
104 95 return apply_filters( 'elementor/editor-one/menu/custom_code_url', $default_url );
105 96 }
106 97
107 - public static function get_elementor_home_url(): string {
108 - return admin_url( 'admin.php?page=' . self::ELEMENTOR_MENU_SLUG );
109 - }
110 -
111 98 public static function get_elementor_post_types(): array {
112 99 $default_values = [
113 100 'elementor_icons' => [
114 101 'menu_slug' => 'elementor-custom-elements',
115 - 'child_slug' => 'edit.php?post_type=elementor_icons',
102 + 'child_slug' => 'custom-icons',
116 103 ],
117 104 'elementor_font' => [
118 105 'menu_slug' => 'elementor-custom-elements',
119 - 'child_slug' => 'edit.php?post_type=elementor_font',
106 + 'child_slug' => 'custom-fonts',
120 107 ],
121 108 'elementor_snippet' => [
122 109 'menu_slug' => 'elementor-custom-elements',
123 - 'child_slug' => 'edit.php?post_type=elementor_snippet',
110 + 'child_slug' => 'custom-code',
124 111 ],
125 112 ];
126 113
127 114 return apply_filters( 'elementor/editor-one/menu/elementor_post_types', $default_values );