woocommerce_price_filter_sql
Использование
add_filter( 'woocommerce_price_filter_sql', 'wp_kama_woocommerce_price_filter_sql_filter', 10, 3 ); /** * Function for `woocommerce_price_filter_sql` filter-hook. * * @param $sql * @param $meta_query_sql * @param $tax_query_sql * * @return */ function wp_kama_woocommerce_price_filter_sql_filter( $sql, $meta_query_sql, $tax_query_sql ){ // filter... return $sql; }
- $sql
- -
- $meta_query_sql
- -
- $tax_query_sql
- -
Где вызывается хук
woocommerce_price_filter_sql
woocommerce/includes/widgets/class-wc-widget-price-filter.php 182
$sql = apply_filters( 'woocommerce_price_filter_sql', $sql, $meta_query_sql, $tax_query_sql );