woocommerce_get_filtered_term_product_counts_query
Usage
add_filter( 'woocommerce_get_filtered_term_product_counts_query', 'wp_kama_woocommerce_get_filtered_term_product_counts_query_filter' ); /** * Function for `woocommerce_get_filtered_term_product_counts_query` filter-hook. * * @param $query * * @return */ function wp_kama_woocommerce_get_filtered_term_product_counts_query_filter( $query ){ // filter... return $query; }
- $query
- -
Where the hook is called
woocommerce_get_filtered_term_product_counts_query
woocommerce/src/Internal/ProductAttributesLookup/Filterer.php 168
$query = apply_filters( 'woocommerce_get_filtered_term_product_counts_query', $query );