Page 1 of 1

[Solved] Additional Action upon EOT

PostPosted: January 12th, 2012, 8:24 am
by angelazou
I'm selling something very similar to membership. In fact, I'm selling the ability to post something through another plugin. Now I understand that I can use S2member to delete the user when his/her EOT has reached, but is there a way I can add a function to remove all content he/she published when EOT has reached (an addition function)?

Angela

Edit: In addition, I'd like to limit the times a specific page/post can be accessed. How can I do that?

Re: Additional Action upon EOT

PostPosted: January 13th, 2012, 8:34 pm
by Raam Dev
You'll probably want create a function that does what you need and then hook into s2Member using one of the Auto EOT System Hooks.

To limit the times a specific post/page can be accessed, you can simply modify the theme page.php template file to check for a specific date/time (or even a date/time range) and then only show the page content if it matches. I did something similar here: viewtopic.php?f=4&t=15899&p=52991#p52991

Re: Additional Action upon EOT

PostPosted: January 14th, 2012, 11:46 am
by angelazou
Great, thank you.