woocommerce_product_query_tax_query
Usage
add_filter( 'woocommerce_product_query_tax_query', 'wp_kama_woocommerce_product_query_tax_filter', 10, 2 ); /** * Function for `woocommerce_product_query_tax_query` filter-hook. * * @param $tax_query * @param $that * * @return */ function wp_kama_woocommerce_product_query_tax_filter( $tax_query, $that ){ // filter... return $tax_query; }
- $tax_query
- -
- $that
- -
Where the hook is called
woocommerce_product_query_tax_query
woocommerce/includes/class-wc-query.php 843
return array_filter( apply_filters( 'woocommerce_product_query_tax_query', $tax_query, $this ) );
Where the hook is used in WooCommerce
woocommerce/includes/class-wc-brands.php 64
add_filter( 'woocommerce_product_query_tax_query', array( $this, 'update_product_query_tax_query' ), 10, 1 );