WC_Order_Item_Fee::set_total()publicWC 1.0

Set total.

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_total( $amount );
$amount(string) (required)
Fee amount (do not enter negative amounts).

WC_Order_Item_Fee::set_total() code WC 9.1.2

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