Wordpress Gravatar Alternative

How to have local avatars in Wordpress, and why it should be supported out-of-the-box.

2093 views
d

By. Jacob

Edited: 2020-01-31 17:31

I am working with Wordpress for my final exam project on my education, and for once I would like users to be able to update their profile pictures in a simple way. This is however not possible, since you are forced to use Gravatar by default.

Gravatar is relying on the users e-mail address, and hosts the profile pictures externally rather than locally. It makes no sense whatsoever to have this as the default option. There should, at least be an alternative option to host images locally.

Instead, we are forced to install a plugin like WP User Avatar, which might come with its own set of issues. I prefer to limit my use of plugins to a bare minimum, both for security- and technical reasons.

Gravatar alternatives

There are many things about Wordpress that should just be build-in, and support for profile pictures is just one of them. The reliance on third-party plugins is worrying, as it might increase the chance of security issues, as well as inconvenient updates.

I hate having to update my Wordpress sites. For most my sites, currently, I would only want to install security related updates, and preferably automatically.

If you search for avatar in the Plugins section of your Wordpress administration, several options will show up. The most pouplar seems to be these (as of May 2019):

  1. WP User Avatar
  2. Simple Local Avatars
  3. Avatar Manager

Privacy and Gravatar

Since Wordpress will attempt to download avatars (profile pictures) from gravarar.com for the supplied e-mail addresses, you may also want to install a plugin to disable Gravatar entirely.

You should never blindly trust the privacy policy of third parties, not even if Gravatar promises not to gather personal information.

If you are using WP User Avatar, there is an the "Disable Gravatar and use only local avatars" option in settings. Otherwise, there is also other plugins to disable it, one of them is: Disable User Gravatar.

If you prefer to keep the Gravatar system intact, you may also want to consider installing a plugin like: Avatar Privacy, which adds opt-in and local avatars.

Tell us what you think:

Harrywp

Hi Jacob,

Thanks for sharing this information, I'm also writing this concern on the Indonesian language for my WordPress reader. Thanks again for sharing this.

Regard
Harry

  1. How to insert code right after body opening tag, and creating a wrapper around the code in a page using PHP output buffering and the Wordpress shutdown hook.
  2. How to properly remove the title from a Wordpress post, and how to do it for specific post types.
  3. There is no function to select a post by slug name (post name), but we can create our own function to do it; find out how in this tutorial.
  4. How to properly customize Wordpress based website, where to add your own code, and how to override existing functionality.
  5. How to manually move a Wordpress website to another domain name, and copy the database and the files from the old site.

More in: WordPress Tutorials