-
Home
-
Site Sticky Notes
- Tips
How to Hide Site Sticky Notes Admin Menus
function plt_hide_site_sticky_notes_menus() {
//Hide the "Site Notes" menu.
remove_menu_page('edit.php?post_type=site_notes');
//Hide the "Site Notes → All Notes" menu.
remove_submenu_page('edit.php?post_type=site_notes', 'edit.php?post_type=site_notes');
//Hide the "Site Notes → Settings" menu.
remove_submenu_page('edit.php?post_type=site_notes', 'site_notes-options');
}
add_action('admin_menu', 'plt_hide_site_sticky_notes_menus', 11);
Where do I put this code?
How to Hide the "" Meta Box
function plt_hide_site_sticky_notes_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "" meta box.
remove_meta_box('site_notes_options_box', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_site_sticky_notes_metaboxes', 20);