WC_Cart_Fees::set_fees()publicWC 1.0

Set fees.

Method of the class: WC_Cart_Fees{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Cart_Fees = new WC_Cart_Fees();
$WC_Cart_Fees->set_fees( $raw_fees );
$raw_fees(object[])
Array of fees.
Default: array()

WC_Cart_Fees::set_fees() code WC 8.6.1

public function set_fees( $raw_fees = array() ) {
	$this->fees = array();

	foreach ( $raw_fees as $raw_fee ) {
		$this->add_fee( $raw_fee );
	}
}