Warning: This method has been deprecated. calculate_item_subtotals should already appropriately round the tax values instead.
WC_Cart_Totals::round_merged_taxes( array $taxes )
Round merged taxes.
Description Description
Parameters Parameters
- $taxes
-
(Required) Taxes to round.
Return Return
(array)
Source Source
File: includes/class-wc-cart-totals.php
protected function round_merged_taxes( $taxes ) {
foreach ( $taxes as $rate_id => $tax ) {
$taxes[ $rate_id ] = $this->round_line_tax( $tax );
}
return $taxes;
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.9.0 | calculate_item_subtotals should already appropriately round the tax values. |
| 3.5.4 | Introduced. |