WordPress at Your Fingertips
function is not described

WC_Order_Item_Shipping::set_total() public WC 1.0

Set total.

{} It's a method of the class: WC_Order_Item_Shipping{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Order_Item_Shipping::set_total() WC 5.9.0

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