Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Changing avatar images and profile links

@jimme595

Participant
function get_my_link ($string, $user_id) {
	$url = get_home_url();
	$user_info = get_userdata($user_id);
	$name = $user_info->display_name;
	$link = '<a href =' . $url . '/profiles/' . $name . '>' . $name . '</a>';
	return $link;
}
add_filter ('bp_core_get_userlink', 'get_my_link', 10, 2);

I think I’ve got it, the bp_core_get_userlink function generates the links for all the header action username bits so I filtered that with the above code and seems to be working. Phew, got there in the end! Thanks for the help Henry!

Skip to toolbar