Added new filter "woocommerce_get_min_max_price_meta_query"
This commit is contained in:
parent
f13a0bc9eb
commit
5970c9d0f5
|
@ -808,12 +808,12 @@ function wc_get_min_max_price_meta_query( $args ) {
|
|||
$max = $class_max;
|
||||
}
|
||||
|
||||
return array(
|
||||
return apply_filters( 'woocommerce_get_min_max_price_meta_query', array(
|
||||
'key' => '_price',
|
||||
'value' => array( $min, $max ),
|
||||
'compare' => 'BETWEEN',
|
||||
'type' => 'DECIMAL(10,' . wc_get_price_decimals() . ')',
|
||||
);
|
||||
), $args );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue