It may be necessary to take a custom Product Type value out of an import file and convert it to a WooCommerce accepted Product Type (e.g. Simple Product, External, Virtual, Variable, Variation, etc.).
We can do this by making use of the exposed WordPress Filter woo_pd_is_valid_product_type that runs during the import process.
Add the following PHP snippet to your current WordPress Theme’s functions.php file:View Code