Skip to content

Commit

Permalink
Attach the filter before setting the ingregration hook flag
Browse files Browse the repository at this point in the history
  • Loading branch information
james-allan committed Feb 25, 2024
1 parent 25880c5 commit c643fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/compat/trait-wc-stripe-pre-orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit c643fa3

Please sign in to comment.