woocommerce_get_price_html_from_to filter-hookWC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use wc_format_sale_price instead.

Deprecated: 3.0.0 Use wc_format_sale_price instead.

Functions for getting parts of a price, in html, used by get_price_html.


add_filter( 'woocommerce_get_price_html_from_to', 'wp_kama_woocommerce_get_price_html_from_to_filter', 10, 3 );

 * Function for `woocommerce_get_price_html_from_to` filter-hook.
 * @param string $from String or float to wrap with 'from' text
 * @param        $to   
 * @param        $that 
 * @return string
function wp_kama_woocommerce_get_price_html_from_to_filter( $from, $to, $that ){

	// filter...
	return $from;
String or float to wrap with 'from' text


Deprecated since 3.0.0 Use wc_format_sale_price instead.

Where the hook is called

woocommerce/includes/legacy/abstract-wc-legacy-product.php 300
return apply_filters( 'woocommerce_get_price_html_from_to', wc_format_sale_price( $from, $to ), $from, $to, $this );

Where the hook is used in WooCommerce

Usage not found.