Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Urgent: Need to substitute member names with username


sawyerh
Participant

@sawyerh

I found where the bp_member_permalink() function is created, although I’m not sure how to edit it to display the user’s username instead of display name:

Here’s the code:

function bp_member_permalink() {

echo bp_get_member_permalink();

}

function bp_get_member_permalink() {

global $members_template;

return apply_filters( 'bp_get_member_permalink', bp_core_get_user_domain( $members_template->member->id, $members_template->member->user_nicename, $members_template->member->user_login ) );

}

function bp_member_link() { echo bp_get_member_permalink(); }

function bp_get_member_link() { return bp_get_member_permalink(); }

Skip to toolbar