-
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 "Templates".
remove_menu_page('edit.php?post_type=elementor_library');
//Hide "Templates → All Templates".
remove_submenu_page('edit.php?post_type=elementor_library', 'edit.php?post_type=elementor_library');
//Hide "Templates → Add New Template".
remove_submenu_page('edit.php?post_type=elementor_library', 'post-new.php?post_type=elementor_library');
//Hide "Templates → Categories".
remove_submenu_page('edit.php?post_type=elementor_library', 'edit-tags.php?taxonomy=elementor_library_category&post_type=elementor_library');
//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');
}
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 Elementor Dashboard Widgets
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');
//Remove the "Accessibility" widget.
remove_meta_box('e-dashboard-ally', 'dashboard', 'column3');
}
add_action('wp_dashboard_setup', 'plt_hide_elementor_dashboard_widgets', 20);