-
Home
-
Anti-Spam Protection – No API Key, GDPR Friendly
- Tips
How to Hide the "Anti Spam" Admin Menu
function plt_hide_fullworks_anti_spam_menus() {
//Hide the "Settings → Anti Spam" menu.
remove_submenu_page('options-general.php', 'fullworks-anti-spam-settings');
}
add_action('admin_menu', 'plt_hide_fullworks_anti_spam_menus', 1000000000);
Where do I put this code?
How to Hide the "Anti-Spam Protection Status" Dashboard Widget
function plt_hide_fullworks_anti_spam_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Anti-Spam Protection Status" widget.
remove_meta_box('fullworks_anti_spam_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_fullworks_anti_spam_dashboard_widgets', 20);