woocommerce_product_subcategories_args
Usage
add_filter( 'woocommerce_product_subcategories_args', 'wp_kama_woocommerce_product_subcategories_args_filter' ); /** * Function for `woocommerce_product_subcategories_args` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_product_subcategories_args_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_product_subcategories_args
woocommerce/includes/wc-template-functions.php 2668-2677
apply_filters( 'woocommerce_product_subcategories_args', array( 'parent' => $parent_id, 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'product_cat', 'pad_counts' => 1, ) )