How can I hide the default category on the New woo commerce update
I don't want to show it in the store, and there are far to many products to have to go through and re-assign how can I hide it? Is there a way I can with extra css?
Comments
what about removing the cateogry? It will then be removed from all posts?
If it is not possible to remove then you would have to do it manually for each product.
thanks
/**
* Code goes in theme functions.php.
*/
add_filter( 'woocommerce_product_subcategories_args', 'custom_woocommerce_product_subcategories_args' );
function custom_woocommerce_product_subcategories_args( $args ) {
$args['exclude'] = get_option( 'default_product_cat' );
return $args;
}