function plt_hide_plugin_check_menus() { //Hide the "Tools → Plugin Check" menu. remove_submenu_page('tools.php', 'plugin-check'); } add_action('admin_menu', 'plt_hide_plugin_check_menus', 11);
Where do I put this code?