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.
Метод класса: WC_Tax{}
Хуков нет.
Возвращает
float.
Использование
$result = WC_Tax::get_tax_total( $taxes );
- $taxes(массив) (обязательный)
- Array of taxes.
Код WC_Tax::get_tax_total() WC Tax::get tax total WC 10.4.3
public static function get_tax_total( $taxes ) {
return array_sum( $taxes );
}