-
Home
-
Elementor Website Builder – More Than Just a Page Builder
- Tips
How to Hide Elementor Admin Menus
function plt_hide_elementor_menus() {
//Hide "Elementor".
remove_menu_page('elementor-home');
//Hide "Elementor → Home".
remove_submenu_page('elementor-home', 'admin.php?page=elementor-home');
//Hide "Elementor → Editor".
remove_submenu_page('elementor-home', 'elementor');
//Hide "Elementor → Upgrade".
remove_submenu_page('elementor-home', 'elementor-one-upgrade');
//Hide "Elementor".
remove_menu_page('elementor');
//Hide "Elementor → Quick start".
remove_submenu_page('elementor', 'elementor');
//Hide "Elementor → Submissions".
remove_submenu_page('elementor', 'e-form-submissions');
//Hide "Templates".
remove_menu_page('edit.php?post_type=elementor_library');
//Hide "Templates → Add New".
remove_submenu_page('edit.php?post_type=elementor_library', 'http://127.0.0.1/wp-admin/edit.php?post_type=elementor_library#add_new');
//Hide "Templates → Categories".
remove_submenu_page('edit.php?post_type=elementor_library', 'edit-tags.php?taxonomy=elementor_library_category&post_type=elementor_library');
}
add_action('admin_menu', 'plt_hide_elementor_menus', 2147483647);
Where do I put this code?
How to Hide the "Post Attributes" Meta Box
function plt_hide_elementor_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Post Attributes" meta box.
remove_meta_box('pageparentdiv', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_elementor_metaboxes', 20);
How to Hide the "Elementor Overview" Dashboard Widget
function plt_hide_elementor_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Elementor Overview" widget.
remove_meta_box('e-dashboard-overview', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_elementor_dashboard_widgets', 20);