From 962d242b4003ecc8f3000ed35ac60c0ca91ce8fd Mon Sep 17 00:00:00 2001 From: Dallen Dalton Date: Mon, 5 Aug 2019 21:58:27 +0000 Subject: [PATCH] Add filters for line items during tax calculation requests --- includes/class-wc-taxjar-integration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-taxjar-integration.php b/includes/class-wc-taxjar-integration.php index 07143e74..e80f2d70 100644 --- a/includes/class-wc-taxjar-integration.php +++ b/includes/class-wc-taxjar-integration.php @@ -870,7 +870,7 @@ protected function get_line_items( $wc_cart_object ) { } } - return $line_items; + return apply_filters( 'taxjar_cart_get_line_items', $line_items, $wc_cart_object ); } /** @@ -924,7 +924,7 @@ protected function get_backend_line_items( $order ) { } } - return $line_items; + return apply_filters( 'taxjar_order_calculation_get_line_items', $line_items, $order ); } protected function get_line_item( $id, $line_items ) {