WordPress at Your Fingertips
function is not described

WC_Order_Item_Fee::set_amount() public WC 1.0

Set fee amount.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Item_Fee = new WC_Order_Item_Fee();
$WC_Order_Item_Fee->set_amount( $value );
$value(string) (required)
Amount.

Code of WC_Order_Item_Fee::set_amount() WC 6.1.1

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