WC_Order_Item_Fee::set_amount()
Set fee amount.
Method of the class: WC_Order_Item_Fee{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Order_Item_Fee = new WC_Order_Item_Fee(); $WC_Order_Item_Fee->set_amount( $value );
- $value(string) (required)
- Amount.
WC_Order_Item_Fee::set_amount() WC Order Item Fee::set amount code WC 9.7.1
public function set_amount( $value ) { $this->set_prop( 'amount', wc_format_decimal( $value ) ); }