Expirable Featured Membership for BuddyPress

If you are using BuddyPress Featured Members plugin and need to expire/remove the users based on time, This post might help you.

One of our Members(Thank you Herve), asked about it in our forums a few week ago. @ravisharma put a tiny plugin to do it.

The plugin is available from github.

Link:- https://github.com/buddydev/bp-featured-member-expirable-membership

By default, It expires the user after 7 days.  If you need to change the time, Please open the plugin file and look for this code

You should modify that value and return the number of seconds. For example, to expire a user in 2 hours, return 7200 (2*60*60).

You can find the line here on the repo.

Have fun.

Leave a Reply

Are you looking for support?

Please ask support questions in BuddyDev Forum and help us serve you better. Please use comment for general discussion/feature suggestions.

Your email address will not be published. All the fields marked as * are required.

If you are posting code, please use <pre> { Your Code Block } </pre>. Example:- <pre> echo $name; </pre>

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">