WC_Cart::set_total_tax( string $value )
Set total tax amount.
Description Description
Parameters Parameters
- $value
-
(Required) Value to set.
Source Source
File: includes/class-wc-cart.php
public function set_total_tax( $value ) { // We round here because this is a total entry, as opposed to line items in other setters. $this->totals['total_tax'] = wc_round_tax_total( $value ); }
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |