-
Home
-
WZ Followed Posts – Display what visitors are reading
- Tips
How to Hide WebberZone Followed Posts Admin Menus
function plt_hide_where_did_they_go_from_here_menus() {
//Hide the "Tools → WFP Tools" menu.
remove_submenu_page('tools.php', 'wherego_tools_page');
//Hide the "Settings → Followed Posts" menu.
remove_submenu_page('options-general.php', 'wherego_options_page');
}
add_action('admin_menu', 'plt_hide_where_did_they_go_from_here_menus', 12);
Where do I put this code?
How to Hide the "WebberZone Followed Posts" Meta Box
function plt_hide_where_did_they_go_from_here_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "WebberZone Followed Posts" meta box.
remove_meta_box('wherego_metabox', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_where_did_they_go_from_here_metaboxes', 20);