Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: get_avatar() | Retrieve the avatar |
wp-includes/comment.php: get_comment() | Retrieves comment data given a comment ID or comment object. |
Adds avatars to comment author names.
(string) (Required) Comment author name.
(int) (Required) Comment ID.
(string) Avatar with the user name.
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"; }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_comments_list_table/floated_admin_avatar