Fix product subscription unlink functionality

This commit is contained in:
Himad M 2025-05-28 14:40:10 -04:00
parent b5c9a6f5f4
commit d115393957
No known key found for this signature in database
GPG key ID: 5FC769E9888A7B98

View file

@ -681,7 +681,7 @@ class PayPalSubscriptionsModule implements ServiceModule, ExtendingModule, Execu
'<label for="ppcp_enable_subscription_product-' . esc_attr( (string) $product->get_id() ) . '" style="' . esc_attr( $style ) . '">',
'</label>'
);
$plan_id = isset( $subscription_plan['id'] ) ?? '';
$plan_id = $subscription_plan['id'] ?? '';
echo '<input type="checkbox" id="ppcp_enable_subscription_product-' . esc_attr( (string) $product->get_id() ) . '" data-subs-plan="' . esc_attr( (string) $plan_id ) . '" name="_ppcp_enable_subscription_product" value="yes" ' . checked( $enable_subscription_product, 'yes', false ) . '/>';
echo sprintf(
// translators: %1$s and %2$s are label open and close tags.