WC_Order_Item_Fee::get_amount()publicWC 1.0

Get fee amount.

Метод класса: WC_Order_Item_Fee{}

Хуков нет.

Возвращает

Строку.

Использование

$WC_Order_Item_Fee = new WC_Order_Item_Fee();
$WC_Order_Item_Fee->get_amount( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Код WC_Order_Item_Fee::get_amount() WC 8.7.0

public function get_amount( $context = 'view' ) {
	return $this->get_prop( 'amount', $context );
}