-
Home
-
WP News and Scrolling Widgets
- Tips
How to Hide WP News and Scrolling Widgets Admin Menus
function plt_hide_sp_news_and_widget_menus() {
//Hide the "News" menu.
remove_menu_page('wp-news-and-scrolling-widgets');
}
add_action('admin_menu', 'plt_hide_sp_news_and_widget_menus', 1000);
Where do I put this code?
How to Hide the "More Premium - Settings" Meta Box
function plt_hide_sp_news_and_widget_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "More Premium - Settings" meta box.
remove_meta_box('wpnw-post-metabox-pro', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_sp_news_and_widget_metaboxes', 20);