WC_Order_Item_Fee::set_amount()publicWC 1.0

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() code WC 8.9.0

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