Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // hide a category from the categories widget
- // code goes in functions.php for your child 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('17');
- return $cat_args;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement