WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_total_fees() public WC 1.0

Calculate fees for all line items.

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

No Hooks.

Return

float. Fee total.

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_total_fees();

Code of WC_Abstract_Order::get_total_fees() WC 5.8.0

public function get_total_fees() {
	return array_reduce(
		$this->get_fees(),
		function( $carry, $item ) {
			return $carry + $item->get_total();
		}
	);
}