WordPress at Your Fingertips
function is not described

WP_Comments_List_Table::floated_admin_avatar() public WP 3.1.0

Adds avatars to comment author names.

{} It's a method of the class: WP_Comments_List_Table{}

No Hooks.

Return

String. Avatar with the user name.

Usage

$WP_Comments_List_Table = new WP_Comments_List_Table();
$WP_Comments_List_Table->floated_admin_avatar( $name, $comment_id );
$name(string) (required)
Comment author name.
$comment_id(int) (required)
Comment ID.

Changelog

Since 3.1.0 Introduced.

Code of WP_Comments_List_Table::floated_admin_avatar() WP 5.8.2

public function floated_admin_avatar( $name, $comment_id ) {
	$comment = get_comment( $comment_id );
	$avatar  = get_avatar( $comment, 32, 'mystery' );
	return "$avatar $name";
}