function plt_hide_gtm_ecommerce_woo_menus() { //Hide the "Settings → Google Tag Manager" menu. remove_submenu_page('options-general.php', 'gtm-ecommerce-woo'); } add_action('admin_menu', 'plt_hide_gtm_ecommerce_woo_menus', 11);
Where do I put this code?