Skip to:
Content
Pages
Categories
Search
Top
Bottom

edit xprofile as an editor not an admin?


  • muskokee
    Participant

    @muskokee

    Hi everyone, I want to allow editors and not just admins to edit user xprofile fields. Do you know of a hook that I can use to allow this? I have installed a general roles and capabilities plugin for the site, I can see the xprofile tab as an editor but when I click on it, it says I do not have permission to edit the profile. Through the plugin I can edit the regular wordpress profile fields…just not the xprofile!

    TIA
    Sheri

    BTW – crossposted in the miscellaneous category. I think this is the more correct category though!

Viewing 3 replies - 1 through 3 (of 3 total)

  • danbp
    Moderator

    @danbp

    This is actually not possible. Is a work on progress: https://buddypress.trac.wordpress.org/ticket/5121


    muskokee
    Participant

    @muskokee

    Thanks for the info. So there is no way that I can create a function that hooks into say…the page load and then check a user’s role and allow them to edit profile data?

    I finally found the function that controls access (I think):

    public function user_admin_load()

    in bp-members-admin.php

    Could I make a new copy in my theme folder so that I could hack the code? Not that I want to do that but according to the ticket, this issue has been outstanding for 2 years! My client needs to allow team members access to alter profiles but that is all they should be doing. And she needs this asap. There is no way she can wait 2 years! lol


    danbp
    Moderator

    @danbp

    That’s a recent function i didn’t know ! It’s filtrable, so you haven’t to hack that core file.

    See also in same file member_can_edit function, related to bp_moderate capability, used for group admins, but i doubt you can apply it to “editor”…

    FYI: https://buddypress.org/support/topic/bp_moderate-capability/

    Additionnally, see this snippet written for WP only, if you can combine something:

    Let Editor Manage Users in WordPress

    I’ve already tested all this, but i got the same result as you. But i’m not a dev. 🙂

    Good luck !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘edit xprofile as an editor not an admin?’ is closed to new replies.
Skip to toolbar