bp_get_group_member_avatar_thumb

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

Description

(string) bp_get_group_member_avatar_thumb( (string) $args = '' ); 

Returns (string)

Parameters (1)

0. $args — Optional. (string) => ''
The args.

Options

  • (bp_core_fetch_avatar()}.) => null
array(
    '' => null
);        


Usage

  1. if ( !function_exists( 'bp_get_group_member_avatar_thumb' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-groups/bp-groups-template.php'; 
  3.  
  4. // The args. 
  5. $args = array( 
  6. '' => null 
  7. ); 
  8.  
  9. // NOTICE! Understand what this does before running. 
  10. $result = bp_get_group_member_avatar_thumb($args); 
  11.  

Defined (1)

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

/bp-groups/bp-groups-template.php  
  1. function bp_get_group_member_avatar_thumb( $args = '' ) { 
  2. global $members_template; 
  3.  
  4. $r = bp_parse_args( $args, 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. ) ); 
  10.  
  11. /** 
  12. * Filters the group member avatar thumb while in the groups members loop. 
  13. * @since 1.1.0 
  14. * @param string $value HTML markup for group member avatar thumb. 
  15. * @param array $r Parsed args used for the avatar query. 
  16. */