Subscription EOT & Renew Actions
Posted: September 29th, 2011, 1:20 am
My scenario, I have given s2 subscribers to my website the ability to add posts to a custom post type.
What I would like to accomplish is:
1. To automatically set their posts to 'draft' status when their subscription ends or they cancel it.
2. Then if the user renews their subscription their posts get returned to a 'published' status.
I can write the code to set the post status in both cases, but what I need is the appropriate hooks to call to get this done. And can I determine the current user account that is being affected.
Do I use the action: ws_plugin__s2member_after_auto_eot_system to trigger the post status change to 'draft'? I have no clue which action will tell me when a user is renewed their account.
Thanks so much, this plugin is amazing. The Pro Authorize.net form work wonderfully.
-Vince
What I would like to accomplish is:
1. To automatically set their posts to 'draft' status when their subscription ends or they cancel it.
2. Then if the user renews their subscription their posts get returned to a 'published' status.
I can write the code to set the post status in both cases, but what I need is the appropriate hooks to call to get this done. And can I determine the current user account that is being affected.
Do I use the action: ws_plugin__s2member_after_auto_eot_system to trigger the post status change to 'draft'? I have no clue which action will tell me when a user is renewed their account.
Thanks so much, this plugin is amazing. The Pro Authorize.net form work wonderfully.
-Vince