WordPress at Your Fingertips
function is not described

WC_Order_Item_Product::set_subtotal_tax() public WC 1.0

Line subtotal tax (before 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_subtotal_tax( $value );
$value(string) (required)
Subtotal tax.

Code of WC_Order_Item_Product::set_subtotal_tax() WC 5.7.1

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