WC_Tax::get_tax_total()public staticWC 1.0

Sums a set of taxes to form a single total. Values are pre-rounded to precision from 3.6.0.

Method of the class: WC_Tax{}

No Hooks.

Return

float.

Usage

$result = WC_Tax::get_tax_total( $taxes );
$taxes(array) (required)
Array of taxes.

WC_Tax::get_tax_total() code WC 8.6.1

public static function get_tax_total( $taxes ) {
	return array_sum( $taxes );
}