GC_Comments_List_Table::floated_admin_avatar()

最后更新于:2021-11-26 22:32:10

GC_Comments_List_Table::floated_admin_avatar( string$name, int$comment_id)

Adds avatars to comment author names.

参数

$name

(string) (Required) Comment author name.

$comment_id

(int) (Required) Comment ID.

响应

(string) Avatar with the user name.

源文件

文件: gc-admin/includes/class-gc-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";
	}