function plt_hide_exploit_scanner_menus() { //Hide the "Tools → Exploit Scanner" menu. remove_submenu_page('tools.php', 'exploit-scanner'); } add_action('admin_menu', 'plt_hide_exploit_scanner_menus', 11);
Where do I put this code?