PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

[Solved] Additional Action upon EOT

s2Member Plugin. A Membership plugin for WordPress®.

[Solved] Additional Action upon EOT

Postby angelazou » January 12th, 2012, 8:24 am

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?
Last edited by angelazou on January 14th, 2012, 11:47 am, edited 1 time in total.
User avatar
angelazou
Registered User
Registered User
 
Posts: 72
Joined: July 14, 2011

Re: Additional Action upon EOT

Postby Raam Dev » January 13th, 2012, 8:34 pm

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
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Additional Action upon EOT

Postby angelazou » January 14th, 2012, 11:46 am

Great, thank you.
User avatar
angelazou
Registered User
Registered User
 
Posts: 72
Joined: July 14, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron