Created by Michael Visser 2017-06-15 View revision File functions.php Added Side-by-side diff More Ignore whitespace Hide word diff +<?php +function custom_woo_pd_is_valid_product_type( $output, $product_type ) { + + if( $product_type == 'variabile' ) + $output = 'variable'; + if( $product_type == 'simpleproduct' ) + $output = 'simple'; + + return $output; + +} +add_filter( 'woo_pd_is_valid_product_type', 'custom_woo_pd_is_valid_product_type', 10, 2 ); +?>