Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Redirect User Profile Link

@tharsheblows

Participant

To change the user profile url, you can use this – it will build a link to the /profile/username and return that in the bbp_get_user_profile_url function in includes/users/template.php :

add_filter('bbp_pre_get_user_profile_url', 'mjj_profile_link');
function mjj_profile_link( $user_id ){
	$user_info = get_userdata( $user_id );
	$user_nicename = $user_info -> user_nicename;
	return '/profile/' . $user_nicename;
}

This would go in your functions.php file or bbpress-functions.php if you’re using that. Never modify those files in the admin area, only do them if you have ftp access and can undo anything that goes wrong!

Skip to toolbar