Published on
Dec 26, 2024
Updated on
08 Jan 2025
Share

Local Avatars Module - WPMasterToolKit WordPress Plugin

The Local Avatars module of the WPMasterToolKit plugin has been developed to improve avatar management on WordPress sites. Rather than relying on the Gravatar service, this module uses the WordPress media library to host and manage user avatars. This gives administrators and users greater control and personalization.

Why replace Gravatar with Local Avatars?

Gravatar is an external service that links an e-mail address to a unique avatar. While convenient, this means that every time you change your avatar, you have to make changes on the Gravatar site. The Local Avatars module simplifies this procedure by keeping everything on your WordPress site, eliminating dependency on an external service. This independence reinforces avatar consistency across your site, while improving page loading speed.

Discover the module : Apple Touch icon

The capabilities of the Local Avatars module

The Local Avatars module integrates your WordPress media library, allowing users to select and upload their personalized avatars directly from their user profile. Each avatar selected is saved as a user-specific metadata, offering seamless profile management.

Key features :

  • Using the WordPress media library to select avatars.
  • Avatars can be changed or deleted directly from the user profile.
  • Simplified management thanks to a hidden field that stores the media ID referring to the current avatar.

How do I use the Local Avatars module?

To use this module, simply activate it via the WordPress administration panel. Then, each user can go to their profile and choose an avatar via the media library. For administrators or editors, a few additional actions in the "User profile" panel allow you to define or update avatars for each user.

WordPress profile image editing interface

Module Technical Explanations

To ensure its operation, the module uses several WordPress hooks and actions. Here are some of the main ones:

  • add_action('admin_enqueue_scripts') To load the scripts required for the administration interface.
  • add_action('show_user_profile') and add_action('edit_user_profile') These actions display the avatar selection interface on user profile pages.
  • add_filter('get_avatar_data') This filter replaces the avatar URL with that of the local file when necessary.
  • apply_filters('after_setup_theme')To add support for custom headers in AJAX calls.

One particular piece of information relates to security: nonce verification when saving avatars prevents CSRF attacks.

Pro
from
2.50$
/Month
14
Days
Money-back guarantee
risk-free at 100 %!

Conclusion

WPMasterToolKit's Local Avatars module is an effective tool for giving your users a simple, straightforward way to manage their avatars, while enjoying the benefits of the WordPress media library. With its intuitive user interface and simplified management, this module is an ideal replacement for Gravatar, strengthening the personalization and management of visual identities on your WordPress site.

 

Category
Other Features
Version
≤ 1.11.0
Type
Free
More than 18 reviews
+1000
Installations
104
Modules
Pro
from
30.00$
/Year