On this page
floated_admin_avatar( string $name ): string
Adds avatars to relevant places in admin.
Parameters
$namestring Required-
User name.
Return
string Avatar with the user name.
Source
File: wp-admin/includes/comment.php. View all references
function floated_admin_avatar( $name ) {
$avatar = get_avatar( get_comment(), 32, 'mystery' );
return "$avatar $name";
}
Related
Uses
| Uses | Description |
|---|---|
| get_avatar() wp-includes/pluggable.php | Retrieves the avatar |
| get_comment() wp-includes/comment.php | Retrieves comment data given a comment ID or comment object. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/floated_admin_avatar