woocommerce_get_filtered_term_product_counts_query

woocommerce_get_filtered_term_product_counts_query

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_get_filtered_term_product_counts_query') is found 1 times:

  • /src/Internal/ProductAttributesLookup/Filterer.php line 168
    		} else {
    			$query = $this->get_product_counts_query_not_using_lookup_table( $tax_query, $meta_query, $term_ids );
    		}
    
    		$query     = apply_filters( 'woocommerce_get_filtered_term_product_counts_query', $query );
    		$query_sql = implode( ' ', $query );
    
    		// We have a query - let's see if cached results of this query already exist.
    		$query_hash = md5( $query_sql );
    		// Maybe store a transient of the count values.
    		$cache = apply_filters( 'woocommerce_layered_nav_count_maybe_cache', true );