WC_Cart_Totals::round_merged_taxes()
Устарела с версии 3.9.0 `calculate_item_subtotals` should already appropriately round the tax values.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Round merged taxes.
Метод класса: WC_Cart_Totals{}
Хуков нет.
Возвращает
Массив
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->round_merged_taxes( $taxes );
- $taxes(массив) (обязательный)
- Taxes to round.
Список изменений
С версии 3.5.4 | Введена. |
Устарела с 3.9.0 | calculate_item_subtotals should already appropriately round the tax values. |
Код WC_Cart_Totals::round_merged_taxes() WC Cart Totals::round merged taxes WC 8.7.0
protected function round_merged_taxes( $taxes ) { foreach ( $taxes as $rate_id => $tax ) { $taxes[ $rate_id ] = $this->round_line_tax( $tax ); } return $taxes; }