-
Home
-
Security, Antivirus, Firewall – S.A.F
- Tips
How to Hide Security Antivirus Firewall (wpTools S.A.F.) Admin Menus
function plt_hide_security_antivirus_firewall_menus() {
//Hide the "Security S.A.F." menu.
remove_menu_page('wptsaf_security_extensions');
//Hide the "Security S.A.F. → Security S.A.F." menu.
remove_submenu_page('wptsaf_security_extensions', 'wptsaf_security_extensions');
//Hide the "Security S.A.F. → Settings" menu.
remove_submenu_page('wptsaf_security_extensions', 'wptsaf_security_settings');
}
add_action('admin_menu', 'plt_hide_security_antivirus_firewall_menus', 11);
Where do I put this code?
How to Hide the "S.A.F. - WpTools Security" Dashboard Widget
function plt_hide_security_antivirus_firewall_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "S.A.F. - WpTools Security" widget.
remove_meta_box('dashboard_wptools_saf_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_security_antivirus_firewall_dashboard_widgets', 20);