WordPress at Your Fingertips
function is not described

WC_Cart::get_fees() public WC 1.0

Return all added fees from the Fees API.

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

No Hooks.

Return

Array.

Usage

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

Code of WC_Cart::get_fees() WC 5.6.0

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

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