WordPress at Your Fingertips
function is not described

WC_Order_Item_Product::set_total_tax() public WC 1.0

Line total tax (after discounts).

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Item_Product = new WC_Order_Item_Product();
$WC_Order_Item_Product->set_total_tax( $value );
$value(string) (required)
Total tax.

Code of WC_Order_Item_Product::set_total_tax() WC 5.6.0

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