Statistics: Posted by highfive — August 29th, 2011, 10:21 pm
<?php
add_action ("init", "disable_s2_menu", 1);
function disable_s2_menu ()
{
if (current_user_is ("contributor"))
add_filter ("ws_plugin__s2member_during_add_admin_options_create_menu_items", "__return_false");
}
?>
Statistics: Posted by Jason Caldwell — August 27th, 2011, 2:52 pm
Statistics: Posted by highfive — August 24th, 2011, 5:18 pm
Statistics: Posted by highfive — August 23rd, 2011, 9:44 pm
highfive wrote:
I am creating a few custom roles for my blogs. I need someone who can add new users (Editors $ Contributors), but not have rights to mess with plugins, themes etc. It is basically and Editor+ user with a few extra capabilities.
As soon as I give this role the built in wordpress create_users capability, they suddenly have access to all of the s2member options. Ack! Certainly creating users is going to be tied somewhat to s2member, but that's a little over kill.
Also, another issue this is exposing is that I need to add users who aren't 's2Member' users. Just regular old Author's, etc. However, s2Member has hijacked the add user functionality and assumes every user I want to add is going to be an s2Member user.
<?php
add_action ("init", "disable_s2_menu", 1);
function disable_s2_menu ()
{
if (current_user_is ("contributor"))
add_filter ("ws_plugin__s2member_during_add_admin_options_create_menu_items", "__return_false");
}
?>
Hmm. Not sure what you mean by this. s2Member does add a section to the New User section of your Dashboard, but you can still choose whichever Role you prefer, including those that are part of the WordPress core. If they aren't going to be a Member, just leave all of the s2Member fields empty
Also, another issue this is exposing is that I need to add users who aren't 's2Member' users. Just regular old Author's, etc. However, s2Member has hijacked the add user functionality and assumes every user I want to add is going to be an s2Member user.
Statistics: Posted by Jason Caldwell — August 23rd, 2011, 8:08 pm
Statistics: Posted by highfive — August 22nd, 2011, 11:52 pm