WC_Cart::set_subtotal_tax()publicWC 3.2.0

Set subtotal.

Method of the class: WC_Cart{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->set_subtotal_tax( $value );
$value(string) (required)
Value to set.

Changelog

Since 3.2.0 Introduced.

WC_Cart::set_subtotal_tax() code WC 9.3.3

public function set_subtotal_tax( $value ) {
	$this->totals['subtotal_tax'] = $value;
}