bp_post_author_avatar()

Output a post author’s avatar.


Description Description

Not currently used in BuddyPress.


Source Source

File: bp-core/bp-core-template.php

function bp_post_author_avatar() {
	global $post;

	echo apply_filters( 'bp_post_author_avatar', bp_core_fetch_avatar( array(
		'item_id' => $post->post_author,
		'type'    => 'thumb',
		'alt'     => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $post->post_author ) )
	) ) );
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.