Page 1 of 1

Subscription EOT & Renew Actions

PostPosted: September 29th, 2011, 1:20 am
by vkzawa
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

Re: Subscription EOT & Renew Actions

PostPosted: October 1st, 2011, 3:35 am
by Cristián Lávaque
Thanks for the kudos, Vince! Glad you're liking s2Member. :)

For your customization, maybe you can use the Notifications API. http://www.s2member.com/api-tracking-no ... ons-video/

Let me know if that helps.