bp_member_avatar( array|string $args = '' )
Output a member’s avatar.
Description
See also
- bp_get_member_avatar(): for description of arguments.
Parameters
- $args
-
(Optional) See bp_get_member_avatar().
Default value: ''
Source
File: bp-members/bp-members-template.php
function bp_member_avatar( $args = '' ) {
/**
* Filters a members avatar.
*
* @since BuddyPress 1.2.0
* @since BuddyPress 2.6.0 Added the `$args` parameter.
*
* @param string $value Formatted HTML <img> element, or raw avatar URL based on $html arg.
* @param array|string $args See {@link bp_get_member_avatar()}.
*/
echo apply_filters( 'bp_member_avatar', bp_get_member_avatar( $args ), $args );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.2.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.