From 93f4a721cb242960884bfba36fc7deac242dcd0d Mon Sep 17 00:00:00 2001 From: Roberto Aranda Date: Wed, 17 Jul 2024 20:03:06 +0200 Subject: [PATCH] Add back the condition to display the step only for eCommerce trial plans --- .../partners/class-wc-calypso-bridge-partner-paypal.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/free-trial/partners/class-wc-calypso-bridge-partner-paypal.php b/includes/free-trial/partners/class-wc-calypso-bridge-partner-paypal.php index 6456b17b..cc527344 100644 --- a/includes/free-trial/partners/class-wc-calypso-bridge-partner-paypal.php +++ b/includes/free-trial/partners/class-wc-calypso-bridge-partner-paypal.php @@ -34,10 +34,9 @@ public static function get_instance() { */ public function __construct() { // Only for free trials. - // TODO: Uncomment this line when the free trial plan is available. - // if ( ! wc_calypso_bridge_is_ecommerce_trial_plan() ) { - // return; - // } + if ( ! wc_calypso_bridge_is_ecommerce_trial_plan() ) { + return; + } $onboarding_profile = get_option( 'woocommerce_onboarding_profile', array() ); if ( ! isset( $onboarding_profile['partner'] ) ) { return;