function plt_hide_dd_gtag_event_tracking_menus() { //Hide the "Settings → GTAG Event Options" menu. remove_submenu_page('options-general.php', 'dd-gtag-options'); } add_action('admin_menu', 'plt_hide_dd_gtag_event_tracking_menus', 11);
Where do I put this code?