bp_get_group_current_avatar( string $type = 'thumb' )
Returns the current group avatar.
Description Description
Parameters Parameters
- $type
-
(Optional) Thumb or full.
Default value: 'thumb'
Return Return
(string) $tab The current tab's slug.
Source Source
File: bp-groups/bp-groups-template.php
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', 'buddypress' ), 'class' => 'avatar' ) ); /** * Filters the current group avatar. * * @since 2.0.0 * * @param string $group_avatar HTML markup for current group avatar. */ return apply_filters( 'bp_get_group_current_avatar', $group_avatar ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |