• Resolved Nikodemsky

    (@nikodemsky)


    So i’m using this snippet to hide category from product categories list:

    function woo_product_cat_widget_args( $cat_args ) {
        $cat_args['exclude'] = array('177');
        return $cat_args;
    }
    add_filter( 'woocommerce_product_categories_widget_args', 'woo_product_cat_widget_args' );
    add_filter( 'woocommerce_product_categories_widget_dropdown_args', 'woo_product_cat_widget_args');

    – and it works perfectly till i check option “Only show children of the current category” then it doesn’t work anymore. Do i need another filter for that or am i missing something?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Exclude category from product category list widget’ is closed to new replies.