WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Saad Iqbal v1.2.2

User Avatar

Use any image from your WordPress Media Library as a custom user avatar or user profile picture. Add your own Default Avatar.

User Avatar

The facts

Rating
5★ from 2
Active installs
800+
Price
Free
Last updated
14 Sep 2023
Added
May 2021
Requires WP
4.0
Tested up to
WP 6.3.10
Requires PHP
5.6
Downloads
10,996

Our analysis

AI-assisted

User Avatar – Reloaded is a WordPress plugin that allows users to upload custom avatars from their Media Library instead of relying solely on Gravatar. This functionality enables a more integrated experience for managing avatars, as it uses the same uploader and library as posts.

The plugin provides options for setting default avatars, disabling Gravatar avatars, and allowing users to upload their own avatars. It includes shortcodes for adding upload functionality to pages and supports user roles like Contributors and Subscribers for avatar uploads.

Best for: This plugin suits WordPress users looking to enhance avatar management on their sites.

What it does well

  • Enables use of Media Library for avatars
  • Allows custom default avatars
  • Supports shortcodes for easy integration
  • Lets Contributors and Subscribers upload their own avatars
  • Disables Gravatar avatars if desired

Where it falls short

  • Limited information on additional features or support

Verdict

User Avatar – Reloaded provides a straightforward solution for custom avatar management, particularly for those who prefer using local images over Gravatar.

From the developer

Saad Iqbal's own description of User Avatar, lightly tidied.

WordPress currently only allows you to use custom avatars that are uploaded through Gravatar. WP User Avatar enables you to use any photo uploaded into your Media Library as an avatar. This means you use the same uploader and library as your posts. No extra folders or image editing functions are necessary.

WP User Avatar also lets you:

  • Upload your own Default Avatar in your WP User Avatar settings.
  • Show the user’s Gravatar avatar or Default Avatar if the user doesn’t have a WP User Avatar image.
  • Disable Gravatar avatars and use only local avatars.
  • Use the [avatar_upload] shortcode to add a standalone uploader to a front page or widget. This uploader is only visible to logged-in users.
  • Use the [avatar] shortcode in your posts. These shortcodes will work with any theme, whether it has avatar support or not.
  • Allow Contributors and Subscribers to upload their own avatars.
  • Limit upload file size and image dimensions for Contributors and Subscribers.

Add wp User Avatar to your own profile edit page

You can use the [avatar_upload] shortcode to add a standalone uploader to any page. It’s best to use this uploader by itself and without other profile fields.
If you’re building your own profile edit page with other fields, WP User Avatar is automatically added to the show_user_profile and edit_user_profile hooks. If you’d rather have WP User Avatar in its own section, you could add another hook:

do_action('edit_user_avatar', $current_user);

Then, to add WP User Avatar to that hook and remove it from the other hooks outside of the administration panel, you would add this code to the functions.php file of your theme:

HTML wrapper

You can change the HTML wrapper of the WP User Avatar section by using the functions wpua_before_avatar and wpua_after_avatar. By default, the avatar code is structured like this:

<div class="wpua-edit-container">
  <h3>Avatar</h3>
  <input type="hidden" name="wp-user-avatar" id="wp-user-avatar" value="{attachmentID}" />
  <p id="wpua-add-button">
    <button type="button" class="button" id="wpua-add" name="wpua-add">Edit Image</button>
  </p>
  <p id="wpua-preview">
    <img src="{imageURL}" alt="" />
    Original Size
  </p>
  <p id="wpua-thumbnail">
    <img src="{imageURL}" alt="" />
    Thumbnail
  </p>
  <p id="wpua-remove-button">
    <button type="button" class="button" id="wpua-remove" name="wpua-remove">Default Avatar</button>
  </p>
  <p id="wpua-undo-button">
    <button type="button" class="button" id="wpua-undo" name="wpua-undo">Undo</button>
  </p>
</div>

To strip out the div container and h3 heading, you would add the following filters to the functions.php file in your theme:

<?php
remove_action('wpua_before_avatar', 'wpua_do_before_avatar');
remove_action('wpua_after_avatar', 'wpua_do_after_avatar');
?>

To add your own wrapper, you could create something like this:

<?php
function my_before_avatar() {
  echo '<div id="my-avatar">';
}
add_action('wpua_before_avatar', 'my_before_avatar');

function my_after_avatar() {
  echo '</div>';
}
add_action('wpua_after_avatar', 'my_after_avatar');
?>

This would output:

<div id="my-avatar">
  <input type="hidden" name="wp-user-avatar" id="wp-user-avatar" value="{attachmentID}" />
  <p id="wpua-add-button">
    <button type="button" class="button" id="wpua-add" name="wpua-add">Edit Image</button>
  </p>
  <p id="wpua-preview">
    <img src="{imageURL}" alt="" />
    <span class="description">Original Size</span>
  </p>
  <p id="wpua-thumbnail">
    <img src="{imageURL}" alt="" />
    <span class="description">Thumbnail</span>
  </p>
  <p id="wpua-remove-button">
    <button type="button" class="button" id="wpua-remove" name="wpua-remove">Default Avatar</button>
  </p>
  <p id="wpua-undo-button">
    <button type="button" class="button" id="wpua-undo" name="wpua-undo">Undo</button>
  </p>
</div>

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for managing users.

Members

Members

94

The best WordPress membership and user role editor plugin. User Roles &amp; Capabilities editor helps you rest...

Free 300k+ installs 4.9★ (1,274)
User Role Editor

User Role Editor WordPress plugin makes user roles and capabilities changing easy. Edit/add/delete WordPress u...

Free 700k+ installs 4.5★ (288)
LoginPress

LoginPress is a Custom Login Page Customizer plugin allows you to easily customize the layout of login, admin...

Free 200k+ installs 4.8★ (1,075)
User Registration & Membership

Build membership sites with tiered plans, content restriction, drag-&amp;-drop custom registration &amp; login...

Free 50k+ installs 4.8★ (828)
Custom Login Page Customizer

Customize your WordPress login page with live preview. Change logo, background, colors, and form styling witho...

Free 50k+ installs 4.9★ (474)
User Profile Builder

Powerful user profile plugin to create front-end user registration forms, login &amp; user profile forms. Incl...

Free 40k+ installs 4.7★ (735)