From 8b289ca47856418039ac454e291f197a30b9dec3 Mon Sep 17 00:00:00 2001 From: Nidhi Date: Tue, 9 Jan 2024 12:07:39 +0530 Subject: [PATCH] Added hook to prevent fees when order is updated --- includes/class-alg-wc-order-fees.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/class-alg-wc-order-fees.php b/includes/class-alg-wc-order-fees.php index 764cf76..97dedfd 100644 --- a/includes/class-alg-wc-order-fees.php +++ b/includes/class-alg-wc-order-fees.php @@ -94,6 +94,7 @@ public function alg_wc_cf_update_order_fees( $order_id, $order ) { $this->remove_fees( $order ); $this->add_gateways_fees( $order, $posted_payment_method ); } + do_action( 'alg_wc_checkout_fees_after_order_updated', $this, $order ); } /**