Klaviyo Site Banner | Q2 2025

Product Icon

WooCommerce Subscriptions

Trending
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.