woocommerce_format_price_range
Usage
add_filter( 'woocommerce_format_price_range', 'wp_kama_woocommerce_format_price_range_filter', 10, 3 );
/**
* Function for `woocommerce_format_price_range` filter-hook.
*
* @param $price
* @param $from
* @param $to
*
* @return
*/
function wp_kama_woocommerce_format_price_range_filter( $price, $from, $to ){
// filter...
return $price;
}
- $price
- -
- $from
- -
- $to
- -
Where the hook is called
woocommerce_format_price_range
woocommerce/includes/wc-formatting-functions.php 1398
return apply_filters( 'woocommerce_format_price_range', $price, $from, $to );