fillter to modify the get_categories arguments on the shop page
This commit is contained in:
parent
2ba045d490
commit
99fe1207c2
|
@ -1112,7 +1112,7 @@ if ( ! function_exists( 'woocommerce_product_subcategories' ) ) {
|
|||
'taxonomy' => 'product_cat',
|
||||
'pad_counts' => 1
|
||||
);
|
||||
$product_categories = get_categories( $args );
|
||||
$product_categories = get_categories( apply_filters( 'woocommerce_product_subcategories_args', $args ) );
|
||||
|
||||
$product_category_found = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue