bbp_user_nicename

Output a users nicename to the screen.

Description

bbp_user_nicename( (int) $user_id = 0, (array) $args = array() ); 

Parameters (2)

0. $user_id — Optional. (int)
User ID whose nicename to get
1. $args — Optional. (array) => array()
Before|after|user_id|force

Usage

  1. if ( !function_exists( 'bbp_user_nicename' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/template.php'; 
  3.  
  4. // User ID whose nicename to get 
  5. $user_id = -1; 
  6.  
  7. // before|after|user_id|force 
  8. $args = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bbp_user_nicename($user_id, $args); 
  12.  

Defined (1)

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

/includes/users/template.php  
  1. function bbp_user_nicename( $user_id = 0, $args = array() ) { 
  2. echo bbp_get_user_nicename( $user_id, $args );