'How to link a profile image from media library to a user in WordPress
I am having some trouble trying to accomplish the following: I have already uploaded all my users' profile images in the media library and I have already created all the users I need. Is there a way I can use a WordPress function or Api call so that i can update a user with their profile image.
Solution 1:[1]
https://wordpress.org/plugins/metronet-profile-picture/
This plugin does what you're asking.
Googled: "set user picture wordpress plugin"
(Edit) Additionally: If you can make a proper CSV with all your users and the URL of their picture, you could import/export them with this plugin also: https://wordpress.org/plugins/import-users-from-csv/
also: https://wordpress.org/plugins/users-customers-import-export-for-wp-woocommerce/ Use this to export your current users into a CSV file Then manually edit the CSV export file with the correct picture URL for each user, then import that same file back (delete all users first)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
