I'm using the built-in woocommerce category widget, and at the moment it's displaying both the categories and subcategories.
I excluded a category via this code:
add_filter( 'woocommerce_product_categories_widget_args', 'organicweb_exclude_widget_category' );
function organicweb_exclude_widget_category( $args ) {
// Enter the id of the category you want to exclude in place of '30'
$args['exclude'] = array('62' );
return $args;
}
but the widget still shows it's subcategories.
link: http://tithaty.com.br/?post_type=product
The category hidden is Coleções ( I configured as parent) and I want to hide it's subcategories, current and the ones added in the future.
Colecao teste is an example of a subcategory.
Any ideas?
Thank you