WordPress at Your Fingertips
function is not described

WC_Cart_Fees::set_fees() public WC 1.0

Set fees.

{} It's a method of the class: WC_Cart_Fees{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Cart_Fees::set_fees() WC 5.6.0

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

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