function plt_hide_plugin_stats_view_menus() { //Hide the "Settings → Plugin Stats View" menu. remove_submenu_page('options-general.php', 'PluginStatsView'); } add_action('admin_menu', 'plt_hide_plugin_stats_view_menus', 11);
Where do I put this code?