WC_Cart::get_fees
Return all added fees from the Fees API.
Method of the class: WC_Cart{}
No Hooks.
Returns
Array.
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->get_fees();
WC_Cart::get_fees() WC Cart::get fees code WC 10.7.0
public function get_fees() {
$fees = $this->fees_api()->get_fees();
if ( property_exists( $this, 'fees' ) ) {
$fees = $fees + (array) $this->fees;
}
return $fees;
}