Created
April 11, 2017 20:26
-
-
Save marcosnakamine/b5f33d19f8ec537d10d42b61ab3d8f1f to your computer and use it in GitHub Desktop.
WooCommerce - Exclude category from sidebar widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_product_categories_widget_args', 'fn_woocommerce_product_categories_widget_args' ); | |
function fn_woocommerce_product_categories_widget_args( $args ) { | |
$args['exclude'] = array( '1','2','3' ); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment