WC_Cart::set_cart_contents_taxes()
Set taxes.
Method of the class: WC_Cart{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->set_cart_contents_taxes( $value );
- $value(array) (required)
- Tax values.
Changelog
Since 3.2.0 | Introduced. |
WC_Cart::set_cart_contents_taxes() WC Cart::set cart contents taxes code WC 9.3.3
public function set_cart_contents_taxes( $value ) { $this->totals['cart_contents_taxes'] = (array) $value; }