WC_REST_Products_V2_Controller::api_get_price_html()protectedWC 1.0

Fetch price HTML.

Method of the class: WC_REST_Products_V2_Controller{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->api_get_price_html( $product, $context );
$product(WC_Product) (required)
Product object.
$context(string) (required)
Context of request, can be view or edit.

WC_REST_Products_V2_Controller::api_get_price_html() code WC 8.7.0

protected function api_get_price_html( $product, $context ) {
	return $product->get_price_html();
}