diff --git a/includes/class-wc-cart-totals.php b/includes/class-wc-cart-totals.php index bb2c384a113..538977363f0 100644 --- a/includes/class-wc-cart-totals.php +++ b/includes/class-wc-cart-totals.php @@ -637,7 +637,7 @@ final class WC_Cart_Totals { } if ( $this->calculate_tax && $item->product->is_taxable() ) { - $total_taxes = WC_Tax::calc_tax( $item->total, $item->tax_rates, $item->price_includes_tax ); + $total_taxes = apply_filters( 'woocommerce_calculate_item_totals_taxes', WC_Tax::calc_tax( $item->total, $item->tax_rates, $item->price_includes_tax ), $item, $this ); $item->taxes = $total_taxes; $item->total_tax = array_sum( array_map( array( $this, 'round_line_tax' ), $item->taxes ) );