bp_comment_author_avatar

Output a comment author's avatar.

Description

bp_comment_author_avatar(); 

Not currently used in BuddyPress.


Usage

  1. if ( !function_exists( 'bp_comment_author_avatar' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_comment_author_avatar(); 
  7.  

Defined (1)

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

/bp-core/bp-core-template.php  
  1. function bp_comment_author_avatar() { 
  2. global $comment; 
  3.  
  4. if ( function_exists( 'bp_core_fetch_avatar' ) ) { 
  5. 'item_id' => $comment->user_id,  
  6. 'type' => 'thumb',  
  7. 'alt' => sprintf( __( 'Profile photo of %s', buddypress ), bp_core_get_user_displayname( $comment->user_id ) ) 
  8. ) ) ); 
  9. } elseif ( function_exists( 'get_avatar' ) ) { 
  10. get_avatar();