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 relevant places in admin.
(string) (Required) User name.
(string) Avatar with the user name.
File: wp-admin/includes/comment.php
function floated_admin_avatar( $name ) { $avatar = get_avatar( get_comment(), 32, 'mystery' ); return "$avatar $name"; }
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/floated_admin_avatar