How to Hide Customize Woocommerce Admin Menus

function plt_hide_customize_woocommerce_menus() {
	//Hide "Customize Woocommerce".
	remove_menu_page('swoo-grid');
	//Hide "Customize Woocommerce → Customize Woocommerce".
	remove_submenu_page('swoo-grid', 'swoo-grid');
	//Hide "Customize Woocommerce → Customize Shop".
	remove_submenu_page('swoo-grid', 'woo_shop_styler');
	//Hide "Customize Woocommerce → Customize Products".
	remove_submenu_page('swoo-grid', 'woo_product_styler');
}

add_action('admin_menu', 'plt_hide_customize_woocommerce_menus', 26);

Where do I put this code?