-
Home
-
Security & Malware scan by CleanTalk
- Tips
How to Hide the "Security by CleanTalk" Admin Menu
function plt_hide_security_malware_firewall_menus() {
//Hide the "Settings → Security by CleanTalk" menu.
remove_submenu_page('options-general.php', 'spbc');
}
add_action('admin_menu', 'plt_hide_security_malware_firewall_menus', 11);
Where do I put this code?
How to Hide the "Security by CleanTalk" Dashboard Widget
function plt_hide_security_malware_firewall_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Security by CleanTalk" widget.
remove_meta_box('spbc_dashboard_statistics_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_security_malware_firewall_dashboard_widgets', 20);