Variation products disable
-
Hi
There’s any way I can disable Variation products support in WooCommerce Product admin and in general?
I try the following code:
function ns_variable_product_type_selector( $types, $product_type ) { unset($types['grouped']); unset($types['external']); unset($types['variable']); return $types; } add_filter('product_type_selector', 'ns_variable_product_type_selector', 1, 2);
And External and Grouped disable but not Variable.
Any suggestion please?
Thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Variation products disable’ is closed to new replies.