Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-15T15:39:25-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2676 2011-03-15T15:39:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2676&p=7878#p7878 <![CDATA[Re: How to deactivate user post once his membership expired?]]>
Here are a couple of references that may help achieve this. :)
http://wordpress.stackexchange.com/ques ... than-today
http://codex.wordpress.org/Function_Ref ... pdate_post

Statistics: Posted by Cristián Lávaque — March 15th, 2011, 3:39 pm


]]>
2011-03-13T09:51:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2676&p=7758#p7758 <![CDATA[Re: How to deactivate user post once his membership expired?]]>
So basically I can image to have to wrap up the post code in "single.php" in smth like this:

if author = is a s2member that can see level 1
than > show post
else > set post status to "draft"

But I have NO clue how to write the php code for that, can anyone please help?

(a "s2member that can see level 1" would imply he has paid his subscription)

Help please!
Thank you!

PS: any other, better idea anytime more than welcomed!

Statistics: Posted by candy — March 13th, 2011, 9:51 am


]]>
2011-03-12T21:57:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2676&p=7753#p7753 <![CDATA[Re: How to deactivate user post once his membership expired?]]>
So if the original poster does not renew its membership, his post will be taken down as well (status changed to "draft")

Thanks!

Statistics: Posted by candy — March 12th, 2011, 9:57 pm


]]>
2011-03-12T21:27:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2676&p=7749#p7749 <![CDATA[Re: How to deactivate user post once his membership expired?]]> Statistics: Posted by Cristián Lávaque — March 12th, 2011, 9:27 pm


]]>
2011-03-12T19:15:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2676&p=7743#p7743 <![CDATA[How to deactivate user post once his membership expired?]]>
If I have a user with level 1 paid membership who is allowed to post content (write posts), what will happen with his posts once the membership expires and he does not renew?

I'd like at least content posted by this user in a certain category to be deactivated once the user is not a valid member anymore.

How can this be done?

Thanks a lot!

Statistics: Posted by candy — March 12th, 2011, 7:15 pm


]]>