bbp_current_user_avatar

Output avatar of current user.

Description

bbp_current_user_avatar( (int) $size = 40 ); 

Parameters (1)

0. $size — Optional. (int) => 40
Size of the avatar. Defaults to 40

Usage

  1. if ( !function_exists( 'bbp_current_user_avatar' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/template.php'; 
  3.  
  4. // Size of the avatar. Defaults to 40 
  5. $size = 40; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_current_user_avatar($size); 
  9.  

Defined (1)

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

/includes/users/template.php  
  1. function bbp_current_user_avatar( $size = 40 ) { 
  2. echo bbp_get_current_user_avatar( $size );