bp_get_group_member_avatar_mini

Output the group member avatar while in the groups members loop.

Description

(string) bp_get_group_member_avatar_mini( (int) $width = 30, (int) $height = 30 ); 

Returns (string)

Parameters (2)

0. $width — Optional. (int) => 30
Width of avatar to fetch.
1. $height — Optional. (int) => 30
Height of avatar to fetch.

Usage

  1. if ( !function_exists( 'bp_get_group_member_avatar_mini' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-groups/bp-groups-template.php'; 
  3.  
  4. // Width of avatar to fetch. 
  5. $width = 30; 
  6.  
  7. // Height of avatar to fetch. 
  8. $height = 30; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bp_get_group_member_avatar_mini($width, $height); 
  12.  

Defined (1)

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

/bp-groups/bp-groups-template.php  
  1. function bp_get_group_member_avatar_mini( $width = 30, $height = 30 ) { 
  2. global $members_template; 
  3.  
  4. $r = bp_parse_args( array(), array( 
  5. 'item_id' => $members_template->member->user_id,  
  6. 'type' => 'thumb',  
  7. 'email' => $members_template->member->user_email,  
  8. 'alt' => sprintf( __( 'Profile picture of %s', buddypress ), $members_template->member->display_name ),  
  9. 'width' => absint( $width ),  
  10. 'height' => absint( $height ) 
  11. ) ); 
  12.  
  13. /** 
  14. * Filters the group member avatar mini while in the groups members loop. 
  15. * @since 1.0.0 
  16. * @param string $value HTML markup for group member avatar mini. 
  17. * @param array $r Parsed args used for the avatar query. 
  18. */