-
Home
-
WP Armour – Honeypot Anti Spam
- Tips
How to Hide the "WP Armour" Admin Menu
function plt_hide_honeypot_menus() {
//Hide the "WP Armour" menu.
remove_menu_page('wp-armour');
}
add_action('admin_menu', 'plt_hide_honeypot_menus', 11);
Where do I put this code?
How to Hide the "WP Armour Anti Spam Statistics" Dashboard Widget
function plt_hide_honeypot_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WP Armour Anti Spam Statistics" widget.
remove_meta_box('wpa_dashboard_widget', 'dashboard', 'side');
}
add_action('wp_dashboard_setup', 'plt_hide_honeypot_dashboard_widgets', 20);