WC_Order_Item_Shipping::set_total()publicWC 1.0

Set total.

Method of the class: WC_Order_Item_Shipping{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Order_Item_Shipping = new WC_Order_Item_Shipping();
$WC_Order_Item_Shipping->set_total( $value );
$value(string) (required)
Value to set.

WC_Order_Item_Shipping::set_total() code WC 9.4.2

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