Skip to:
Content
Pages
Categories
Search
Top
Bottom

Improve Editing Capability for Profiles?


  • Heatherlly
    Participant

    @heatherlly

    Hi,

    While I’m able to edit users from the front end, this is limited to the information on their BP profiles. Would it be possible to add/change a link (possibly in the toolbar) that would also enable me to edit them through the dashboard?

    Asking because I frequently need to make changes (i.e. adding them to different forum groups) that fall outside BP profile editing capabilities. Currently, I have to go to the dashboard and look them up manually… it would be so much more convenient if there was a link I could just click from their profile page for direct access.

    I hope this is clear. If not, please let me know, and I’ll try to word it differently.

    Thanks in advance for any help!

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

  • bekuhs
    Participant

    @bekuhs

    Hey Heather, did you ever find a solution for this? I am having the same issue but with groups.


    Heatherlly
    Participant

    @heatherlly

    Sadly, no. Please post here if you find one – I’d still be interested.


    Anonymous User 18187419
    Inactive

    @anonymized-18187419

    Hi heather, you could add an Edit User extra tab on the profile tabs, it will display only for admin.

    
    add_action( 'bp_member_options_nav', 'add_profile_tab_link' );
     
    function add_profile_tab_link() {
    if( !current_user_can('administrator') ) return;
    $url = site_url();
    $url .= '/wp-admin/user-edit.php?user_id=';
    $url .= bp_displayed_user_id();
    echo "<li><a href='$url'>Edit User</a></li>";
    }
    
    

    wikivia
    Participant

    @wikivia

    yes


    Heatherlly
    Participant

    @heatherlly

    Works like a charm. 🙂 Thank you so much!

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