WC_Cart::set_cart_contents_tax()
Set cart tax amount.
{} It's a method of the class: WC_Cart{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->set_cart_contents_tax( $value );
- $value(string) (required)
- Value to set.
Changelog
Since 3.2.0 | Introduced. |
Code of WC_Cart::set_cart_contents_tax() WC Cart::set cart contents tax WC 6.6.1
public function set_cart_contents_tax( $value ) { $this->totals['cart_contents_tax'] = $value; }