Mobile App Refresh Campaign [Banner] 2024

Product Icon

WooCommerce Subscriptions

by  Woo
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.



Current Status


Last updated: June 12, 2020


Log in to comment on this feature request.