WC_Order_Item_Product::set_subtotal_tax()publicWC 1.0

Line subtotal tax (before discounts).

Method of the class: WC_Order_Item_Product{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Order_Item_Product = new WC_Order_Item_Product();
$WC_Order_Item_Product->set_subtotal_tax( $value );
$value(string) (required)
Subtotal tax.

WC_Order_Item_Product::set_subtotal_tax() code WC 9.4.2

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