WC_Abstract_Legacy_Product::get_price_including_tax() public WC 1.0
Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use wc_get_price_including_tax instead.╳
Returns the price (including tax). Uses customer tax rates. Can work for a specific $qty for more accurate taxes.
{} It's a method of the class: WC_Abstract_Legacy_Product{}
No Hooks.
Return
String.
Usage
$WC_Abstract_Legacy_Product = new WC_Abstract_Legacy_Product(); $WC_Abstract_Legacy_Product->get_price_including_tax( $qty, $price );
- $qty(int)
- -
- $price(string)
- to calculate, left blank to just use get_price()
Changelog
Deprecated Since 3.0.0 | Use wc_get_price_including_tax instead. |
Code of WC_Abstract_Legacy_Product::get_price_including_tax() WC Abstract Legacy Product::get price including tax WC 5.0.0
public function get_price_including_tax( $qty = 1, $price = '' ) {
wc_deprecated_function( 'WC_Product::get_price_including_tax', '3.0', 'wc_get_price_including_tax' );
return wc_get_price_including_tax( $this, array( 'qty' => $qty, 'price' => $price ) );
}