function plt_hide_fresh_plugins_menus() { //Hide the "Plugins → Fresh Plugins" menu. remove_submenu_page('plugins.php', 'fresh-plugins'); } add_action('admin_menu', 'plt_hide_fresh_plugins_menus', 11);
Where do I put this code?