floated_admin_avatar() WordPress Function
The floated_admin_avatar() function displays the administrator's avatar image in a floated container on the left side of the page. This can be useful for displaying the administrator's profile picture on the front end of a website.
floated_admin_avatar( string $name ) #
Adds avatars to relevant places in admin.
Parameters
- $name
(string)(Required)User name.
Return
(string) Avatar with the user name.
Source
File: wp-admin/includes/comment.php
function floated_admin_avatar( $name ) { $avatar = get_avatar( get_comment(), 32, 'mystery' ); return "$avatar $name"; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |