WC_Abstract_Order::get_total_fees()

Calculate fees for all line items.


Description Description


Return Return

(float) Fee total.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-order.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.