WC_Order_Item_Fee::set_total
Set total.
Method of the class: WC_Order_Item_Fee{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Order_Item_Fee = new WC_Order_Item_Fee(); $WC_Order_Item_Fee->set_total( $amount );
- $amount(string) (required)
- Fee amount (do not enter negative amounts).
WC_Order_Item_Fee::set_total() WC Order Item Fee::set total code WC 10.7.0
public function set_total( $amount ) {
$this->set_prop( 'total', wc_format_decimal( $amount ) );
}