woocommerce_product_subcategories_hide_empty

woocommerce_product_subcategories_hide_empty

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_product_subcategories_hide_empty') is found 1 times:

  • /includes/wc-template-functions.php line 2772
    				wp_cache_set( $cache_key, $product_categories, 'product_cat' );
    			}
    		}
    
    		if ( apply_filters( 'woocommerce_product_subcategories_hide_empty', true ) ) {
    			$product_categories = wp_list_filter( $product_categories, array( 'count' => 0 ), 'NOT' );
    		}
    
    		return $product_categories;
    	}
    }