Tips on Customizing WooCommerce Etsy Integration

How to Hide WooCommerce Etsy Integration & Sync Admin Menus

function plt_hide_exportfeed_for_woocommerce_product_to_etsy_menus() {
	//Hide "Etsy Sync".
	remove_menu_page('etsy-export-feed-configure');
	//Hide "Etsy Sync → Connect to Etsy".
	remove_submenu_page('etsy-export-feed-configure', 'etsy-export-feed-configure');
	//Hide "Etsy Sync → Contact Us".
	remove_submenu_page('etsy-export-feed-configure', 'etsy-export-feed-configure-contact');
	//Hide "Etsy Sync → Upgrade".
	remove_submenu_page('etsy-export-feed-configure', 'etsy-export-feed-configure-pricing');
}

add_action('admin_menu', 'plt_hide_exportfeed_for_woocommerce_product_to_etsy_menus', 1000000000);

Where do I put this code?

How to Hide the "Etsy Sync" Dashboard Widget

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

	//Remove the "Etsy Sync" widget.
	remove_meta_box('etcpf_dashboard_widget', 'dashboard', 'normal');
}

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