gravatar

Gravatar shortcode for avatar and profile.


Usage

  1. // basic usage 
  2. echo do_shortcode('[gravatar]'); 
  1. // variable usage 
  2. $result = do_shortcode('[gravatar]'); 
  3. echo $result;  

Defined (1)

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

/modules/shortcodes/gravatar.php  
  1. /* 
  2. * [gravatar email="user@example.org" size="48"] 
  3. * [gravatar_profile who="user@example.org"] 
  4. */ 
  5.  
  6. add_shortcode( 'gravatar', 'jetpack_gravatar_shortcode' ); 
  7. add_shortcode( 'gravatar_profile', 'jetpack_gravatar_profile_shortcode' ); 
  8.  
  9. /** 
  10. * Get gravatar using the email provided at the specified size.