Paypal | Site Banner Q4 2024

Added by Latoya

Product Icon

WooCommerce Subscriptions

Let customers subscribe to your products or services and pay on a weekly, monthly or annual basis.

Can create_pending_subscription_for_order return the subscription ID?

In the WC_Subscriptions_Manager class, it would be very helpful if the create_pending_subscription_for_order method would return the subscription id, like the following:

return $subscription->id;

We have an instance where we’re trying to build an array of pending subscription ids created from an order so we can more easily link them with subsequent memberships.

Thanks!

Author

Current Status

Open

Last updated: June 12, 2020

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.