WC_Order_Item_Shipping::set_total
Set total.
Method of the class: WC_Order_Item_Shipping{}
No Hooks.
Returns
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() WC Order Item Shipping::set total code WC 10.5.0
public function set_total( $value ) {
$this->set_prop( 'total', wc_format_decimal( $value ) );
}