WordPress at Your Fingertips
function is not described


ProductSchema::get_price_function_from_tax_display_mode() protected WC 1.0

WooCommerce can return prices including or excluding tax; choose the correct method based on tax display mode.

{} It's a method of the class: ProductSchema{}

No Hooks.


String. Function name.


// protected - for code of main (parent) or child class
$result = $this->get_price_function_from_tax_display_mode( $tax_display_mode );
$tax_display_mode(string) (required)
If returned prices are incl or excl of tax.

Code of ProductSchema::get_price_function_from_tax_display_mode() WC 5.8.0

protected function get_price_function_from_tax_display_mode( $tax_display_mode ) {
	return 'incl' === $tax_display_mode ? 'wc_get_price_including_tax' : 'wc_get_price_excluding_tax';