gravatar_profile

The WordPress Core gravatar profile shortcode.


Usage

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

Defined (1)

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

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