Mô tả
User Profile Picture gives any user a custom profile picture, a local avatar chosen from the WordPress Media Library, instead of their Gravatar.
Choose the picture on the user’s profile screen with the standard WordPress media uploader. From then on it appears everywhere WordPress shows that user’s avatar: comments, author boxes, the admin toolbar, the Users list, and any theme or plugin that uses get_avatar().
Features
- Custom profile picture for any user, chosen or uploaded with the native WordPress media uploader.
- Shown everywhere avatars appear: comments, post authors, the admin toolbar, the Users screen, and themes and plugins that call
get_avatar(). - Pictures are served from your own site, so users don’t need a Gravatar account.
- Users without a custom picture keep their Gravatar or your default avatar.
- Keeps the size, alt text, CSS classes and lazy loading your theme asks for.
- Set the picture when creating a user on Users > Add New.
- Lightweight: no settings page, and the media uploader loads only on the user screens.
- Works with block themes, classic themes and multisite.
- For developers: the
dew_profile_img()function and thedpp_avatar_classesfilter.
How it works
- Go to Users and open a user’s profile, or your own.
- Under Profile Picture, click Upload and choose or upload an image.
- Click Update Profile. The picture now replaces that user’s Gravatar across your site.
Profile pictures are set by administrators (users who can edit other users), for any user including themselves.
Like the plugin? Please consider leaving a review. It helps other people find it.
Ảnh màn hình


Cài đặt
From your WordPress dashboard
- Go to Plugins > Add New and search for “User Profile Picture Dew Technolab”.
- Install and activate the plugin.
- Open Users > Profile, or edit any user, and set the profile picture.
Manual installation
- Upload the
users-profile-picturefolder to/wp-content/plugins/. - Activate the plugin on the Plugins screen.
Hỏi đáp
-
How do I set a user’s profile picture?
-
Open the user’s profile (Users > Profile, or Users > All Users > Edit), click Upload under Profile Picture, choose an image and click Update Profile.
-
Who can set profile pictures?
-
Administrators, and other users who can edit users. They can set a picture for any user, including themselves.
-
Where is the picture shown?
-
Everywhere WordPress shows that user’s avatar: comments, author boxes, the admin toolbar, the Users list, and themes and plugins that use the standard
get_avatar()function. -
Do users still need Gravatar?
-
No. A user with a custom profile picture gets it from your site. Users without one keep their Gravatar or the default avatar set in Settings > Discussion.
-
How do I show the picture in my theme?
-
Use
get_avatar( $user_id, 96 )as usual. To print only the custom picture, usedew_profile_img( $user_id, array( 'size' => array( 96, 96 ) ) ). Add CSS classes with thedpp_avatar_classesfilter. -
How do I crop the image?
-
In the media uploader, click Edit Image to crop or scale the picture with the WordPress image editor before you choose it.
-
Does it work on multisite?
-
Yes. The picture is stored with the user, so it is shown on every site in the network.
-
Where can I get help?
-
Ask in the support forum.
Đánh giá
Người đóng góp & Lập trình viên
“User Profile Picture – Custom Local Avatars” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “User Profile Picture – Custom Local Avatars” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0.9
- Fix: The plugin name showed an unreadable character instead of the dash on the Plugins screen.
1.0.8
- Added: A short, dismissible review request on the user screens (two weeks after first use) and a “Leave a review” link on the Plugins screen.
- Tweak: Clearer plugin name, description and FAQ.
1.0.7
- Fix: The profile picture is now also used when themes request an avatar with a user object, a post or a member’s comment, and keeps the theme’s alt text, CSS classes and lazy loading.
- Fix:
dew_profile_img()printed nothing (and a PHP warning) when called with its default settings, and its default size produced an invalid image size. - Fix: The picture chosen on Users > Add New is now saved.
- Fix: Picture URLs containing “&” were saved HTML-encoded.
- Security: Only http and https picture URLs are accepted, saving checks permission to edit that specific user, and a profile save without the picture field no longer removes the picture.
- Tweak: The media uploader now loads only on the user profile screens instead of every admin page.
- Tweak: The text domain now matches the plugin slug so WordPress.org translations load.
- Tested with WordPress 7.1.
1.0.6
- Added compatibility with WordPress version 7.0.0.
1.0.5
- Added compatibility with WordPress version 6.7.1.
1.0.4
- Added compatibility with WordPress version 6.0.
- Other minor bug fixes.
1.0.3
- Added compatibility with PHP version 8.0.
- Added compatibility with WordPress version 5.6.
- Other minor bug fixes.
1.0.2
- Change
1.0.1
- Fix error
1.0.0
- Initial release.
