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