Restricting access to themes and plugins??
Posted:
October 20th, 2010, 12:00 pm
by bm11100
I am using WPMU v 3.0.1 and just installed the free s2member plugin. For my site, we give paying members access to certain plugins and themes that the free members cannot access. Is there a way to configure s2member for themes and plugin restrictions instead of page and posts??
Any info would help, thanks so much.
Re: Restricting access to themes and plugins??
Posted:
October 22nd, 2010, 10:28 pm
by Jason Caldwell
No, sorry. I can tell you that s2Member does not deal with this by default. I'm certain it could be accomplished, but it would require an additional plugin that reads in User capabilities affecting the display and availability of themes/plugins.
Something like this: ( this is just pseudo-code )
- Code: Select all
<?php
if(current_user_can("access_s2member_level3")){
}
?>
You'll find more examples of Advanced Conditionals in your Dashboard under: s2Member -> API Scripting. I would also recommend this VIDEO tutorial covering Custom Capabilties ( how to extend s2Member ): http://www.s2member.com/custom-capabilities-video/