WC_Tax::get_tax_total
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.
Returns
float.
Usage
$result = WC_Tax::get_tax_total( $taxes );
- $taxes(array) (required)
- Array of taxes.
WC_Tax::get_tax_total() WC Tax::get tax total code WC 10.5.0
public static function get_tax_total( $taxes ) {
return array_sum( $taxes );
}