function plt_hide_tp_woocommerce_product_gallery_menus() { //Hide the "TP Woocommerce Product Gallery" menu. remove_menu_page('tpwpg_settings'); } add_action('admin_menu', 'plt_hide_tp_woocommerce_product_gallery_menus', 11);
Where do I put this code?