WC_Cart::set_total_tax( string $value )

Set total tax amount.


Description Description


Parameters Parameters

$value

(Required) Value to set.


Top ↑

Source Source

File: includes/class-wc-cart.php

522
523
524
525
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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.