Tips on Customizing Product Feed on WooCommerce for Google, Awin, Shareasale, Bing, and More

How to Hide Product Feed on WooCommerce for Google, Awin, Shareasale, Bing, and More Admin Menus

function plt_hide_purple_xmls_google_product_feed_for_woocommerce_menus() {
	//Hide "Product Feed".
	remove_menu_page('cart-product-feed-admin');
	//Hide "Product Feed → Create New Feed".
	remove_submenu_page('cart-product-feed-admin', 'cart-product-feed-admin');
	//Hide "Product Feed → Manage Feeds".
	remove_submenu_page('cart-product-feed-admin', 'cart-product-feed-manage-page');
	//Hide "Product Feed → Tutorials".
	remove_submenu_page('cart-product-feed-admin', 'cart-product-feed-tutorials-page');
}

add_action('admin_menu', 'plt_hide_purple_xmls_google_product_feed_for_woocommerce_menus', 11);

Where do I put this code?

How to Hide the "ExportFeed - Add more sales channels" Dashboard Widget

function plt_hide_purple_xmls_google_product_feed_for_woocommerce_dashboard_widgets() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Remove the "ExportFeed - Add more sales channels" widget.
	remove_meta_box('custom_help_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_purple_xmls_google_product_feed_for_woocommerce_dashboard_widgets', 20);