Comment::gravatar() method

Returns a URL to this user's gravatar image


// basic usage
$string = $comment->gravatar();

// usage with all arguments
$string = $comment->gravatar(string $rating = 'g', string $imageset = 'mm', int $size = 80);


rating (optional)string

Gravatar rating, one of [ g | pg | r | x ], default is g.

imageset (optional)string

Gravatar default imageset, one of [ 404 | mm | identicon | monsterid | wavatar | retro | blank ], default is mm.

size (optional)int

Gravatar image size, default is 80.

Return value


Comment methods and properties

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #531
    In the 531st issue of ProcessWire Weekly we’ll check out the latest weekly update from Ryan, introduce new third party modules, and more. Read on! / 13 July 2024
  • Page List Custom Children module
    This simple module gives you the ability to customize the parent/child relationship as it appears in the admin page list, enabling child pages to appear under more than one parent.
    Blog / 28 June 2024
  • Subscribe to weekly ProcessWire news

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull