WC_Abstract_Order::set_total_tax( string $value )

Sets order tax (sum of cart and shipping tax). Used internally only.


Description Description


Parameters Parameters

$value

(Required) Value to set.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-order.php

	protected function set_total_tax( $value ) {
		// We round here because this is a total entry, as opposed to line items in other setters.
		$this->set_prop( 'total_tax', wc_format_decimal( wc_round_tax_total( $value ) ) );
	}


Top ↑

User Contributed Notes User Contributed Notes

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