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.
Return
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 9.5.1
public static function get_tax_total( $taxes ) { return array_sum( $taxes ); }