woocommerce_get_price_html_from_to
Usage
add_filter( 'woocommerce_get_price_html_from_to', 'wp_kama_woocommerce_get_price_html_from_to_filter', 10, 4 );
/**
* Function for `woocommerce_get_price_html_from_to` filter-hook.
*
* @param $wc_format_sale_price
* @param $from
* @param $to
* @param $that
*
* @return
*/
function wp_kama_woocommerce_get_price_html_from_to_filter( $wc_format_sale_price, $from, $to, $that ){
// filter...
return $wc_format_sale_price;
}
- $wc_format_sale_price
- -
- $from
- -
- $to
- -
- $that
- -
Where the hook is called
woocommerce_get_price_html_from_to
woocommerce/includes/legacy/abstract-wc-legacy-product.php 303
return apply_filters( 'woocommerce_get_price_html_from_to', wc_format_sale_price( $from, $to ), $from, $to, $this );