AI Verified

Name

Hide Some Elementor Items on the Wordpress Sidebar

About

If you want to hide some elementor item from the Wordpress Dashboard Sidebar

Language

PHP

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Add to Code Snippets. Always take a backup first!

Codevault

jefrychen

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Snippet Source:

https://plugintests.com/plugins/wporg/elementor/tips

History

Last modified:

28/06/2023

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Hide Some Elementor Items on the Wordpress Sidebar

 
                    
1function plt_hide_elementor_menus() {
2 //Hide "Elementor".
3 remove_menu_page('elementor');
4 //Hide "Elementor → Settings".
5 remove_submenu_page('elementor', 'elementor');
6 //Hide "Elementor → Role Manager".
7 remove_submenu_page('elementor', 'elementor-role-manager');
8 //Hide "Elementor → Tools".
9 remove_submenu_page('elementor', 'elementor-tools');
10 //Hide "Elementor → System Info".
11 remove_submenu_page('elementor', 'elementor-system-info');
12 //Hide "Elementor → Getting Started".
13 remove_submenu_page('elementor', 'elementor-getting-started');
14 //Hide "Elementor → Get Help".
15 remove_submenu_page('elementor', 'go_knowledge_base_site');
16 //Hide "Elementor → Submissions".
17 remove_submenu_page('elementor', 'e-form-submissions');
18 //Hide "Elementor → Custom Fonts".
19 remove_submenu_page('elementor', 'elementor_custom_fonts');
20 //Hide "Elementor → Custom Icons".
21 remove_submenu_page('elementor', 'elementor_custom_icons');
22 //Hide "Elementor → Custom Code".
23 remove_submenu_page('elementor', 'elementor_custom_custom_code');
24 //Hide "Elementor → Upgrade".
25 remove_submenu_page('elementor', 'go_elementor_pro');
26 
27 //Hide "Templates".
28 remove_menu_page('edit.php?post_type=elementor_library');
29 //Hide "Templates → Saved Templates".
30 remove_submenu_page('edit.php?post_type=elementor_library', 'edit.php?post_type=elementor_library&tabs_group=library');
31 //Hide "Templates → Theme Builder".
32 remove_submenu_page('edit.php?post_type=elementor_library', 'http://127.0.0.1/wp-admin/admin.php?page=elementor-app&ver=3.13.4#site-editor/promotion');
33 //Hide "Templates → Landing Pages".
34 remove_submenu_page('edit.php?post_type=elementor_library', 'e-landing-page');
35 //Hide "Templates → Kit Library".
36 remove_submenu_page('edit.php?post_type=elementor_library', 'http://127.0.0.1/wp-admin/admin.php?page=elementor-app&ver=3.13.4#/kit-library');
37 //Hide "Templates → Popups".
38 remove_submenu_page('edit.php?post_type=elementor_library', 'popup_templates');
39 //Hide "Templates → Add New".
40 remove_submenu_page('edit.php?post_type=elementor_library', 'http://127.0.0.1/wp-admin/edit.php?post_type=elementor_library#add_new');
41 //Hide "Templates → Categories".
42 remove_submenu_page('edit.php?post_type=elementor_library', 'edit-tags.php?taxonomy=elementor_library_category&post_type=elementor_library');
43}
44 
45add_action('admin_menu', 'plt_hide_elementor_menus', 201);

0

Related Snippets

Please see some snippets below related to this snippet..

Elementor

AI Verified

0

Elementor author posts with UAE Posts widget

Added: 1 year ago

Last Updated: 1 year ago

Display posts of only the current author archive using Elementor and "Unlimited Addons for Elementor" Posts widget

Elementor

AI Verified

0

Add Media Library to Elementor Finder

Added: 1 year ago

Last Updated: 1 year ago

Add the Media Library to the Elementor Finder

Elementor

Unverified

1

Off-Canvas-Widget-Anchors

Added: 2 weeks ago

Last Updated: 2 weeks ago

Ensure the New Off Canvas Widget closes when you click on a Same Page Menu Anchor

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Elementor

AI Verified

0

Hide Some Elementor Items on the Wordpress Sidebar

Added: 1 year ago

Last Updated: 1 year ago

If you want to hide some elementor item from the Wordpress Dashboard Sidebar