From c643fa3cee804cc24f75f169d1721c4d59e9efa4 Mon Sep 17 00:00:00 2001 From: James Allan Date: Mon, 26 Feb 2024 09:43:59 +1000 Subject: [PATCH] Attach the filter before setting the ingregration hook flag --- includes/compat/trait-wc-stripe-pre-orders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/compat/trait-wc-stripe-pre-orders.php b/includes/compat/trait-wc-stripe-pre-orders.php index c0e3665f3a..70689e0e56 100644 --- a/includes/compat/trait-wc-stripe-pre-orders.php +++ b/includes/compat/trait-wc-stripe-pre-orders.php @@ -39,9 +39,9 @@ public function maybe_init_pre_orders() { return; } - self::$has_attached_pre_order_integration_hooks = true; - add_filter( 'wc_stripe_display_save_payment_method_checkbox', [ $this, 'hide_save_payment_for_pre_orders_charged_upon_release' ] ); + + self::$has_attached_pre_order_integration_hooks = true; } /**