From 943125b434caa6775998f89999c81e9fc0ac1ec6 Mon Sep 17 00:00:00 2001 From: inpsyde-maticluznar Date: Wed, 22 Nov 2023 09:45:14 +0100 Subject: [PATCH] Remove cancelOrderOnExpiryDate that runs on init --- src/Payment/PaymentModule.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Payment/PaymentModule.php b/src/Payment/PaymentModule.php index d7c92734..7a26d511 100644 --- a/src/Payment/PaymentModule.php +++ b/src/Payment/PaymentModule.php @@ -479,12 +479,6 @@ public function cancelOrderAtMollie($order_id) */ public function handleExpiryDateCancelation($paymentMethods) { - add_action( - 'init', - [$this, 'cancelOrderOnExpiryDate'], - 11, - 2 - ); if (!$this->IsExpiryDateEnabled($paymentMethods)) { as_unschedule_action('mollie_woocommerce_cancel_unpaid_orders'); return;