Usage:

This shortcode will automatically retrieve a registered gravatar from www.gravatar.com and display it.

If a user is not logged in or hasn’t registered her/his gravatar, the default avatar specified in your WordPress settings is displayed instead.

This shortcode does NOT support conditional branching with [ELSE_avatar].
Shortcode nesting is NOT supported.

Parameters:

email An alternate email address can be specified.
Default: The logged in user’s email address will be used.
Required: no.
size The desired height and width for the displayed avatar. The default size is defined in the “Plugin Options” panel.
Default: none/set in Plugin Options.
Required: no.
suppress_empty Specifies whether to display a placebo avatar when the user hasn’t registered an image at gravatar.com
Default: none.
Required: no.

Example:

API:

To use this shortcode in your own PHP code, please use as follows: