Recently we were working on a project involving wordpress and a membership site. For the site the client was looking for a way to register users but wanted them to be able to have custom capabilities for the actions they wanted their users to take. They want a new users to have the ability of an author on their website but still wanted to limit the permissions of an author. We wanted to share a workaround for this and maybe it will work for you as well.
The first step in the process is that we went through the normal steps of setting up the plugin s2member, this is a great plugin for anyone wanting to setup a site that features a paid-member site and it has many features that are well worth and the best thing is that it is FREE.Download s2member Plugin
The only draw back is that s2member will make the default role a subscriber on wordpress and this can be changed in the wordpress code or s2member code but this will only be overridden when the plugin is updated.
The workaround solution for this to use the s2member plugin with another plugin called “Members”Download the Members Plugin
The various choices for roles with s2member are:
- subscriber (default role)
When both plugins are activated at the same time they can work together for added functionality and help you accomplish a great deal of other items. Each of the levels 1 – 4 have the same capabilities as a subscriber they just have access to different levels of post (if you have this enabled).
In your wordpress admin panel under the users section select “Roles”, you will then see a listing of all of the roles that have been created in wordpress. View the Author role and look at the capabilities that an author can do, if you would like a subscriber or any of the s2member levels to have the same ability as an author simple enable the same capabilities that an author would have. Since s2member uses the subscriber as a default role when members sign up, changing the abilities and access of what a subscriber is authorized to do will give this added functionality for members of your site.
Let’s look at an example, for the client that we were helping they wanted anyone who registered for their site to have the same capabilities as an author. By default an author has the following abilities:
Now that we know what an author can do, we can view the role of subscriber (since this is the default role chosen by s2member) we can enable the same capabilities as the author but we will not allow access over .
*The same logic can be applied to the other access levels of s2member as well.
You can find the various roles with WordPress here: http://codex.wordpress.org/Roles_and_Capabilities