- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
› Forums › WooCommerce Plugins › Can you retrieve the end date of the current user’s subscription?
Hi, I am a WooCommerce store owner. I want to retrieve the end dates of my current user’s subscription plan according to my needs. Is there any way to do it?
Yes, you can retrieve the end date of your current user’s subscription plan using the Subscriptions for WooCommerce plugin. For doing so, you will need to have a subscription ID of the user’s subscription order. Then, you can easily retrieve the subscription end date using the code:
$wps_susbcription_end = get_post_meta( $subscription_id, ‘wps_susbcription_end’, true );
Then finally, you will get the subscription end date for the subscription order.