Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

deryck on "[Plugin: WooCommerce - excelling eCommerce] Variation products disable"

$
0
0

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

http://wordpress.org/extend/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 104029

Trending Articles