mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Revert latest change, will be included in its own PR
This commit is contained in:
parent
eb19f05226
commit
750e5891c4
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ class PayPalSubscriptionsModule implements ServiceModule, ExtendingModule, Execu
|
|||
function( $product_id ) use ( $c ) {
|
||||
$subscriptions_helper = $c->get( 'wc-subscriptions.helper' );
|
||||
assert( $subscriptions_helper instanceof SubscriptionHelper );
|
||||
if ( ! $subscriptions_helper->plugin_is_active() ) {
|
||||
|
||||
$connect_subscription = wc_clean( wp_unslash( $_POST['_ppcp_enable_subscription_product'] ?? '' ) );
|
||||
if ( ! $subscriptions_helper->plugin_is_active() || $connect_subscription !== 'yes' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue