WC_Order_Item_Fee::set_total()publicWC 1.0

Set total.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Order_Item_Fee = new WC_Order_Item_Fee();
$WC_Order_Item_Fee->set_total( $amount );
$amount(строка) (обязательный)
Fee amount (do not enter negative amounts).

Код WC_Order_Item_Fee::set_total() WC 8.7.0

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