-
Home
-
Mail Bank – #1 Mail SMTP Plugin for WordPress
- Tips
How to Hide the "WP Mail Bank" Admin Menu
function plt_hide_wp_mail_bank_menus() {
//Hide the "WP Mail Bank" menu.
remove_menu_page('wp_mail_bank_wizard');
}
add_action('admin_menu', 'plt_hide_wp_mail_bank_menus', 11);
Where do I put this code?
How to Hide the "Mail Bank Statistics" Dashboard Widget
function plt_hide_wp_mail_bank_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Mail Bank Statistics" widget.
remove_meta_box('mb_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_wp_mail_bank_dashboard_widgets', 20);