WC_Cart::set_fee_total()
Set fee amount.
Method of the class: WC_Cart{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->set_fee_total( $value );
- $value(string) (required)
- Value to set.
Changelog
Since 3.2.0 | Introduced. |
WC_Cart::set_fee_total() WC Cart::set fee total code WC 9.6.1
public function set_fee_total( $value ) { $this->totals['fee_total'] = wc_format_decimal( $value ); }