bp_get_group_current_avatar( string $type = 'thumb' )
Returns the current group avatar.
Description
Parameters
- $type
-
(Optional) Thumb or full.
Default value: 'thumb'
Return
(string) $tab The current tab's slug.
Source
File: bp-groups/bp-groups-template.php
6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 | function bp_get_group_current_avatar( $type = 'thumb' ) { $group_avatar = bp_core_fetch_avatar( array ( 'item_id' => bp_get_current_group_id(), 'object' => 'group' , 'type' => $type , 'avatar_dir' => 'group-avatars' , 'alt' => __( 'Group avatar' , 'buddyboss' ), 'class' => 'avatar' ) ); /** * Filters the current group avatar. * * @since BuddyPress 2.0.0 * * @param string $group_avatar HTML markup for current group avatar. */ return apply_filters( 'bp_get_group_current_avatar' , $group_avatar ); } |
Changelog
Version | Description |
---|---|
BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.