function plt_hide_plugin_groups_menus() { //Hide the "Plugins → Plugin Groups" menu. remove_submenu_page('plugins.php', 'plugin-groups'); } add_action('admin_menu', 'plt_hide_plugin_groups_menus', 11);
Where do I put this code?