wpcom_vip_email_has_gravatar

Checks to see if a given e-mail address has a Gravatar or not.

You can use this function to only call get_avatar() when the user has a Gravatar and display nothing (rather than a placeholder image) when they don’t.

Parameters

Name Type Description
$email string Email to check for a gravatar

Return Value

bool: Returns true if $email has a gravatar

Ready to get started?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.