Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Eric Kubiak

hide product variation

How can i hide product variation menu in the sidebar of the back end

4 years, 3 months ago
Stefan van den Dungen Gronovius

You can disable it by using the following snippet. We do the same to enable it.

add_filter( 'woocommerce_register_post_type_product_variation', function( $args ){
	$args['show_ui'] = false;
	$args['show_in_menu'] = false;
	return $args;
}, 11, 1 );
4 years, 3 months ago

You must be logged in to reply to this topic.