WordPress at Your Fingertips
function is not described

WC_Order_Item_Fee::set_total() public WC 1.0

Set total.

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

Code of WC_Order_Item_Fee::set_total() WC 6.1.0

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