• Resolved Tecca

    (@tecca)


    Hello. Is there a way to remove a user role once a subscription has elapsed (not paid, canceled, etc)?

    As of now, I apply a “web_subscriber” role when a user purchases a subscription, which I do using WooCommerce’s woocommerce_order_status_processing

    Is there a hook I can use when a sub expires, so that I can remove the role automatically?

    Thank you for your time!

Viewing 1 replies (of 1 total)
  • Plugin Author WP Swings

    (@wpswings)

    Hello,

    Please use this hook to remove the user role on the expiration of the subscription

    do_action( ‘wps_sfw_expire_subscription_scheduler’, $susbcription_id );

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘Remove role when subscription expires’ is closed to new replies.