WordPress at Your Fingertips
function is not described

WC_Order_Item_Shipping::set_total_tax() protected WC 1.0

Set total tax.

{} It's a method of the class: WC_Order_Item_Shipping{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->set_total_tax( $value );
$value(string) (required)
Value to set.

Code of WC_Order_Item_Shipping::set_total_tax() WC 5.9.0

protected function set_total_tax( $value ) {
	$this->set_prop( 'total_tax', wc_format_decimal( $value ) );
}