WC_Cart::get_fees()
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() WC Cart::get fees code WC 8.0.2
public function get_fees() { $fees = $this->fees_api()->get_fees(); if ( property_exists( $this, 'fees' ) ) { $fees = $fees + (array) $this->fees; } return $fees; }