bbp_user_profile_url

Output URL to the profile page of a user.

Description

bbp_user_profile_url( (int) $user_id = 0, (string) $user_nicename = '' ); 

Parameters (2)

0. $user_id — Optional. (int)
User id
1. $user_nicename — Optional. (string) => ''
User nicename

Usage

  1. if ( !function_exists( 'bbp_user_profile_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/template.php'; 
  3.  
  4. // Optional. User id 
  5. $user_id = -1; 
  6.  
  7. // Optional. User nicename 
  8. $user_nicename = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bbp_user_profile_url($user_id, $user_nicename); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/users/template.php  
  1. function bbp_user_profile_url( $user_id = 0, $user_nicename = '' ) { 
  2. echo esc_url( bbp_get_user_profile_url( $user_id, $user_nicename ) );