bp_get_group_member_avatar( array|string $args = '' )
Return the group member avatar while in the groups members loop.
Description
Parameters
- $args
-
(Optional) bp_core_fetch_avatar().
Default value: ''
Return
(string)
Source
File: bp-groups/bp-groups-template.php
function bp_get_group_member_avatar( $args = '' ) { global $members_template; $r = bp_parse_args( $args, array( 'item_id' => $members_template->member->user_id, 'type' => 'full', 'email' => $members_template->member->user_email, 'alt' => sprintf( __( 'Profile photo of %s', 'buddyboss' ), $members_template->member->display_name ) ) ); /** * Filters the group member avatar while in the groups members loop. * * @since BuddyPress 1.0.0 * * @param string $value HTML markup for group member avatar. * @param array $r Parsed args used for the avatar query. */ return apply_filters( 'bp_get_group_member_avatar', bp_core_fetch_avatar( $r ), $r ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.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.