-
Home
-
The Best Title Testing Tool for WordPress
- Tips
How to Hide the "Viral Headlines" Admin Menu
function plt_hide_iterative_headlines_menus() {
//Hide the "Settings → Viral Headlines" menu.
remove_submenu_page('options-general.php', 'headlines');
}
add_action('admin_menu', 'plt_hide_iterative_headlines_menus', 11);
Where do I put this code?
How to Hide the "Viral Headlines News" Dashboard Widget
function plt_hide_iterative_headlines_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Viral Headlines News" widget.
remove_meta_box('iterative_headlines_dashboard_widget', 'dashboard', 'side');
}
add_action('wp_dashboard_setup', 'plt_hide_iterative_headlines_dashboard_widgets', 20);