Suspend/unsuspend user based on WP membership status

Perhaps these:
Subscriptions Action Reference Documentation - WooCommerce


Action: 'woocommerce_subscription_status_active'

Parameters: $subscription A WC_Subscription object representing the subscription that just had its status changed.

Description: This action is triggered after the subscription specified with $subscription has had its status changed to activated. The subscription’s status may have transitioned from pending to active, or on-hold to active or some other custom status to active.


Action: 'woocommerce_subscription_status_cancelled'

Parameters: $subscription A WC_Subscription object representing the subscription that just had its status changed.

Description: This action is triggered after the subscription specified with $subscription has had its status changed.

The subscription’s status may have transitioned from pending to cancelled, or on-hold to cancelled, pending cancellation to cancelled or some other custom status to cancelled.


Action: 'woocommerce_subscription_status_expired'

Parameters: $subscription A WC_Subscription object representing the subscription that just had its status changed.

Description: Triggered when a subscription reaches the end of its term, if a length was set on the subscription product when it was purchased or an end date was otherwise set on a subscription.