bp_comment_author_avatar()
Output a comment author’s avatar.
Description
Not currently used in BuddyPress.
Source
File: bp-core/bp-core-template.php
191 192 193 194 195 196 197 198 199 200 201 202 203 | function bp_comment_author_avatar() { global $comment ; if ( function_exists( 'bp_core_fetch_avatar' ) ) { echo apply_filters( 'bp_comment_author_avatar' , bp_core_fetch_avatar( array ( 'item_id' => $comment ->user_id, 'type' => 'thumb' , 'alt' => sprintf( __( 'Profile photo of %s' , 'buddyboss' ), bp_core_get_user_displayname( $comment ->user_id ) ) ) ) ); } elseif ( function_exists( 'get_avatar' ) ) { get_avatar(); } } |
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.