-
Home
-
WP Ghost (Hide My WP Ghost) – Security & Firewall
- Tips
How to Hide WP Ghost Lite Admin Menus
function plt_hide_hide_my_wp_menus() {
//Hide "WP Ghost".
remove_menu_page('hmwp_settings');
//Hide "WP Ghost → Overview".
remove_submenu_page('hmwp_settings', 'hmwp_settings');
//Hide "WP Ghost → Change Paths".
remove_submenu_page('hmwp_settings', 'hmwp_permalinks');
//Hide "WP Ghost → Tweaks".
remove_submenu_page('hmwp_settings', 'hmwp_tweaks');
//Hide "WP Ghost → Mapping".
remove_submenu_page('hmwp_settings', 'hmwp_mapping');
//Hide "WP Ghost → Firewall".
remove_submenu_page('hmwp_settings', 'hmwp_firewall');
//Hide "WP Ghost → Brute Force".
remove_submenu_page('hmwp_settings', 'hmwp_brute');
//Hide "WP Ghost → 2FA Login".
remove_submenu_page('hmwp_settings', 'hmwp_twofactor');
//Hide "WP Ghost → Events Log".
remove_submenu_page('hmwp_settings', 'hmwp_log');
//Hide "WP Ghost → Security Check".
remove_submenu_page('hmwp_settings', 'hmwp_securitycheck');
//Hide "WP Ghost → Backup/Restore".
remove_submenu_page('hmwp_settings', 'hmwp_backup');
//Hide "WP Ghost → Advanced".
remove_submenu_page('hmwp_settings', 'hmwp_advanced');
//Hide "WP Ghost → Plugins".
remove_submenu_page('hmwp_settings', 'hmwp_plugins');
}
add_action('admin_menu', 'plt_hide_hide_my_wp_menus', 11);
Where do I put this code?
How to Hide the "WP Ghost" Dashboard Widget
function plt_hide_hide_my_wp_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "WP Ghost" widget.
remove_meta_box('hmwp_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_hide_my_wp_dashboard_widgets', 20);