WC_Abstract_Order::set_shipping_tax()publicWC 1.0

Set shipping_tax.

Method of the class: WC_Abstract_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->set_shipping_tax( $value );
$value(string) (required)
Value to set.

WC_Abstract_Order::set_shipping_tax() code WC 8.7.0

public function set_shipping_tax( $value ) {
	$this->set_prop( 'shipping_tax', wc_format_decimal( $value, false, true ) );
	$this->set_total_tax( (float) $this->get_cart_tax() + (float) $this->get_shipping_tax() );
}