bbp_user_display_role

Output a user's main role for display.

Description

bbp_user_display_role( (int) $user_id = 0 ); 

Parameters (1)

0. $user_id — Optional. (int)
The user id.

Usage

  1. if ( !function_exists( 'bbp_user_display_role' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/template.php'; 
  3.  
  4. // The user id. 
  5. $user_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_user_display_role($user_id); 
  9.  

Defined (1)

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

/includes/users/template.php  
  1. function bbp_user_display_role( $user_id = 0 ) { 
  2. echo bbp_get_user_display_role( $user_id );