function plt_hide_ga_google_analytics_menus() { //Hide the "Settings → Google Analytics" menu. remove_submenu_page('options-general.php', 'ga-google-analytics'); } add_action('admin_menu', 'plt_hide_ga_google_analytics_menus', 11);
Where do I put this code?