Skip to:
Content
Pages
Categories
Search
Top
Bottom

xprofile_screen_edit_profile redefinition


  • mehanic321
    Participant

    @mehanic321

    What I do:
    I create the ability to edit the profile of a specific user by another specific user

    What I’ve done:
    Added filter for bp_core_can_edit_settings which returns true

    but i also need to be able to edit custom fields

    Question: how to redefine this line, because it requires bp_moderate, which I don’t want to give normal users even for a while

    if ( ! bp_is_my_profile() && ! bp_current_user_can( 'bp_moderate' ) ) {
    return false;
    }

    This line is in the file “plugins\buddypress\bp-xprofile\screens\edit.php”

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar