Exclude a category from the WooCommerce category widget

Exclude a category from the WooCommerce category widget WooCommerce support to any WordPress theme:

add_filter( 'woocommerce_product_categories_widget_args', 'woo_product_cat_widget_args' );

function woo_product_cat_widget_args( $cat_args ) {
	
	$cat_args['exclude'] = array('16');
	
	return $cat_args;
}
See also  Add Content Under “Place Order” Button at WooCommerce Checkout

Leave a Reply

Your email address will not be published. Required fields are marked *