Added new filter "woocommerce_get_min_max_price_meta_query"

This commit is contained in:
Diego 2018-12-17 22:42:35 +00:00
parent f13a0bc9eb
commit 5970c9d0f5
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
/**