Can another wordpress user level have access to the Membership menu item?

I would like to allow a different wordpress user level/type eg Administrator or Editor to have access to the “Membership” menu after they log in. This is opposed to the wordpress default admin, which has access to everything. Can I allow another user type to have access to this menu item?

  • Mark Wallace
    • Learn-ing-er

    hello

    This is my fav way to edit roles, but i must warn you. Once you change the role you cannot return to default settings. So be sure to record the default user roles. This will let you change them back if you do not like the changes you make.

    http://wordpress.org/extend/plugins/role-scoper/

    Here is a link to similar plugins. Take your time and read them to find the one that best fits your needs. The change log is often overlooked but has valuable information it.

    http://wordpress.org/extend/plugins/search.php?q=user+managment

    Enjoy!

  • Timothy
    • Chief Pigeon

    Only people given Membership admin access will be able to see it.

    You assign that here:

    Admin –> Membership –> Options –> Membership Admins

    In order to show in that list first before you check them, they need to be site admins as well.

    If you wish to change that then you can find in:

    /membership/membershipincludes/classes/membershipadmin.php

    $wp_user_search = new WP_User_Query( array( 'role' => 'administrator' ) );

    As you can see it currently takes the admin role.

    Take care.

  • dgaltieri
    • Flash Drive

    Thanks Timothy. My issue is not knowing how to use the Membership plugin yet, but i’ll get there. Need some help just setting it all up… With your above suggestion re changing the code, that would be overwritten by any plugin updates, correct? So probably best that I don’t fiddle there…?

    I managed to find a work-around… Set up the user as an admin, then they appear in the Membership Admins list, check them in the list, save then change their user type back to something else (eg editor) and they still get access to Membership, which is great for me – gives me what I’m after, but probably I have uncovered a bug here…

    It would be good if essentially one could add a user to the “Membership Admins” list then set them as true.

  • Timothy
    • Chief Pigeon

    re changing the code, that would be overwritten by any plugin updates, correct? So probably best that I don’t fiddle there…?

    That’s correct, on an update it would remove any changes to the original files.

    Always worth keeping a change log so you can perform updates again later.

    I managed to find a work-around… Set up the user as an admin, then they appear in the Membership Admins list, check them in the list, save then change their user type back to something else (eg editor) and they still get access to Membership, which is great for me – gives me what I’m after, but probably I have uncovered a bug here…

    I suppose it would be a bug, but the reason why is that when you edit their role in WP it simply doesn’t remove them from the checked list, although I suspect their name no longer appears.

    An option to search and add em regardless of role would be a cool feature.

    I’ll ping Barry about the issue here of once you’ve removed their role, they are still membership admins. Perhaps he can look at addressing the adding of Membership admins differently.

    I’m not sure of his plans for this just yet.

    Take care.