WC_Cart::get_fees()publicWC 1.0

Return all added fees from the Fees API.

Method of the class: WC_Cart{}

No Hooks.

Return

Array.

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->get_fees();

WC_Cart::get_fees() code WC 8.7.0

public function get_fees() {
	$fees = $this->fees_api()->get_fees();

	if ( property_exists( $this, 'fees' ) ) {
		$fees = $fees + (array) $this->fees;
	}
	return $fees;
}