bp_get_group_avatar_thumb

Return the group avatar thumbnail while in the groups loop.

Description

(string) bp_get_group_avatar_thumb( (bool) $group = false ); 

Returns (string)

Parameters (1)

0. $group — Optional. (bool) => false
Group object. Default: current group in loop.

Usage

  1. if ( !function_exists( 'bp_get_group_avatar_thumb' ) ) { 
  2. require_once '/bp-groups/bp-groups-template.php'; 
  3.  
  4. // Optional. Group object. 
  5. // Default: current group in loop. 
  6. $group = false; 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = bp_get_group_avatar_thumb($group); 
  10.  

Defined (1)

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

/bp-groups/bp-groups-template.php  
  1. function bp_get_group_avatar_thumb( $group = false ) { 
  2. return bp_get_group_avatar( array( 
  3. 'type' => 'thumb',  
  4. 'id' => ! empty( $group->id ) ? $group->id : false 
  5. ) );