Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-01T03:35:05-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15348 2011-10-01T03:35:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15348&p=42031#p42031 <![CDATA[Re: Subscription EOT & Renew Actions]]>

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.

Statistics: Posted by Cristián Lávaque — October 1st, 2011, 3:35 am


]]>
2011-09-29T01:20:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15348&p=41880#p41880 <![CDATA[Subscription EOT & Renew Actions]]>
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

Statistics: Posted by vkzawa — September 29th, 2011, 1:20 am


]]>