-
Home
-
Orbitype
- Tips
How to Hide Orbitype Admin Menus
function plt_hide_orbitype_menus() {
//Hide the "Orbitype" menu.
remove_menu_page('_');
//Hide the "Mail" menu.
remove_menu_page('__');
//Hide the "SEO" menu.
remove_menu_page('___');
}
add_action('admin_menu', 'plt_hide_orbitype_menus', 11);
Where do I put this code?
How to Hide the "Orbitype" Dashboard Widget
function plt_hide_orbitype_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Orbitype" widget.
remove_meta_box('orbi_cssId', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_orbitype_dashboard_widgets', 20);