woocommerce_get_min_max_price_meta_query
Usage
add_filter( 'woocommerce_get_min_max_price_meta_query', 'wp_kama_woocommerce_get_min_max_price_meta_query_filter', 10, 2 ); /** * Function for `woocommerce_get_min_max_price_meta_query` filter-hook. * * @param $array * @param $args * * @return */ function wp_kama_woocommerce_get_min_max_price_meta_query_filter( $array, $args ){ // filter... return $array; }
- $array
- -
- $args
- -
Where the hook is called
woocommerce_get_min_max_price_meta_query
woocommerce/includes/wc-deprecated-functions.php 1033-1042
return apply_filters( 'woocommerce_get_min_max_price_meta_query', array( 'key' => '_price', 'value' => array( $current_min_price, $current_max_price ), 'compare' => 'BETWEEN', 'type' => 'DECIMAL(10,' . wc_get_price_decimals() . ')', ), $args );