function plt_hide_bad_ip_wp_menus() {
//Hide the "bad_ip" menu.
remove_menu_page('bad-ip-dash.php');
//Hide the "bad_ip → bad_ip" menu.
remove_submenu_page('bad-ip-dash.php', 'bad-ip-dash.php');
//Hide the "bad_ip → Settings" menu.
remove_submenu_page('bad-ip-dash.php', 'bad_ip_settings');
}
add_action('admin_menu', 'plt_hide_bad_ip_wp_menus', 11);