floated_admin_avatar

Add avatars to relevant places in admin, or try to.

Description

(string) floated_admin_avatar( (string) $name ); 

Returns (string)

Avatar with Admin name.

Parameters (1)

0. $name (string)
User name.

Usage

  1. if ( !function_exists( 'floated_admin_avatar' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/comment.php'; 
  3.  
  4. // User name. 
  5. $name = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = floated_admin_avatar($name); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/comment.php  
  1. function floated_admin_avatar( $name ) { 
  2. $avatar = get_avatar( get_comment(), 32, 'mystery' ); 
  3. return "$avatar $name";