I’ve been working on a project where the requirements simply stated this:
- If the user has a gravatar, display it
- Otherwise, give the user the ability to upload a profile image from their computer
The WordPress API offers the get_avatar function for easily retrieving a users gravatar image, but there’s currently no API function that allows us to check if a user has a gravatar.