I just installed and configured this great plugin. I think it will be a great solution, but I'm stuck on one thing.
When users register for my site, I need them to have the Wordpress AUTHOR capability (they need to be able to post in two different custom post types, edit their own posts, delete their own posts, and of course edit theire profile).
I'm just not seeing how to do this.
Currently, all they are able to do is edit their profile. S2 "takes control" of wp-admin-->general settings-->new default user role, setting it to SUBSCRIBER, when I need it to be AUTHOR.
This is what I've attempted so far (in my theme-->functions.php):
- Code: Select all
add_action('admin_init', 'empower_users');
function empower_users()
{
$role = get_role( 's2member_level4' );
$role->add_cap( 'pubish_post' );
$role->add_cap( 'edit_post' );
}
It doesn't work; it doens't appear to do anything.