Simple User Profile Picture
Adds a profile picture upload field to User profiles in WordPress.
by Sully Syed · github.com/yllus/simple-user-profile-picture-for-wordpress
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/yllus/simple-user-profile-picture-for-wordpress/archive/refs/heads/main.zipReadme
Simple User Profile Picture
A WordPress plugin that adds profile picture upload functionality to user profiles.
Features
- Add profile picture field to user profile pages
- Upload images via WordPress Media Library
- Replace WordPress default avatars with custom profile pictures
- Remove profile pictures
- Responsive image sizing
- Clean, modern interface
Installation
- Upload the
simple-user-profile-picturefolder to/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Users → Your Profile to upload a profile picture
Usage
For Users
- Navigate to your profile page (Users → Profile)
- Scroll to the "Profile Picture" section
- Click "Upload Picture" to select an image from your media library or upload a new one
- Click "Update Profile" to save your changes
For Developers
The plugin stores the profile picture as an attachment ID in user meta:
- Meta Key:
simple_user_profile_picture - Value: WordPress attachment ID (integer)
Get a user's profile picture URL:
$user_id = 1;
$attachment_id = get_user_meta($user_id, 'simple_user_profile_picture', true);
if ($attachment_id) {
$image_url = wp_get_attachment_image_url($attachment_id, 'thumbnail');
echo $image_url;
}
The plugin automatically filters:
get_avatar_url- Returns custom avatar URLget_avatar- Returns custom avatar HTML
Requirements
- WordPress 5.0 or higher
- PHP 7.0 or higher
Changelog
1.0.0
- Initial release
- Profile picture upload functionality
- Avatar filtering
- Media library integration
License
GPL v2 or later