WP_Comments_List_Table::floated_admin_avatar( string $name, int $comment_ID )

Adds avatars to comment author names.


Parameters Parameters

$name

(string) (Required) Comment author name.

$comment_ID

(int) (Required) Comment ID.


Top ↑

Return Return

(string) Avatar with the user name.


Top ↑

Source Source

File: wp-admin/includes/class-wp-comments-list-table.php

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


Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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