gravatar($email, $size = 256, $default = 'mm')

Builds the Gravatar URL by email

  • $email (string)
  • $size (int)
  • $default (string)
    Default image (default: "mystery-man")
  • return (string)

Example

<img src="<?= gravatar('bastian@getkirby.com') ?>" alt="my gravatar">

Is something missing or incorrect? Edit this page on Github…