Site icon Hip-Hop Website Design and Development

Woocommerce Subscriptions mechanically restart after subscription is paused for 1 month interval

I’ve Googled, searched SO, WordPress.org and every part in between and haven’t discovered a solution to do what I would like executed. I’m working Woocommerce Subscriptions and have discovered the right way to allow the subscriber to pause their subscription below My Account–>Subscriptions–>View Subscription for 1 month. The issue now’s I don’t know the right way to go about establishing their subscription to mechanically restart on the finish of the paused interval. I’ve seemed on the docs and am not sure of what I would like in an effort to do that.

I assumed possibly this may work?

Motion: ‘woocommerce_subscription_status_updated’

Parameters:
$subscription An occasion of a WC_Subscription object that simply had its standing modified.
$new_status The string illustration of the brand new standing utilized to the subscription.
$old_status The string illustration of the subscriptions standing earlier than the change was utilized.

Description: Just like WooCommerce’s ‘woocommerce_order_status_changed’ hook, this motion is triggered instantly after a subscription’s standing has been modified.

It will likely be triggered for all standing adjustments outlined by WooCommerce Subscriptions, together with: pending, lively, on-hold, pending-cancel, cancelled, or expired; in addition to any customized subscription statuses.

I’d admire any assist or not less than some extent in the proper route.