bbp_get_user_profile_url
Codex Home → bbp_get_user_profile_url
Description
The ‘bbp_get_user_profile_url’ function returns the URL of the supplied user’s profile.
How to use it
1 | <?php bbp_get_user_profile_url( $user_id ); ?> |
$user_id – The specified user to return the profile link for.
Sample code example
1 2 | <?php $this_user = wp_get_current_user(); ?> <a href= "<?php echo bbp_get_user_profile_url($this_user->ID); ?>" >Your Forum profile</a> |
Creates a link to the current user’s profile.