Warning: This method has been deprecated. Use wc_format_sale_price instead.

WC_Abstract_Legacy_Product::get_price_html_from_to( string $from, mixed $to )

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


Description Description


Parameters Parameters

$from

(Required) String or float to wrap with 'from' text

$to

(Required) String or float to wrap with 'to' text


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/legacy/abstract-wc-legacy-product.php

	public function get_price_html_from_to( $from, $to ) {
		wc_deprecated_function( 'WC_Product::get_price_html_from_to', '3.0', 'wc_format_sale_price' );
		return apply_filters( 'woocommerce_get_price_html_from_to', wc_format_sale_price( $from, $to ), $from, $to, $this );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.