Wordpress upload avatar?

The need emerged to the user in his personal account to be able to install an avatar from your computer.
What function can you do?
July 8th 19 at 16:11
1 answer
July 8th 19 at 16:13
To download the user's avatar you will need the following WordPress function as: media_handle_upload()
wp_get_attachment_url()
update_user_meta()

Read more about editing user profiles, including about uploading the avatar can be read in this article.
When using Simple Local Avatars I understand is created a separate box for the avatar. And I need to avatar which has varied from WordPress using a gravatar that is. I use the plugin Wp User Avatar and if he's questioning the avatar he put a gun and a normal avatar.. - keshaun.Botsford21 commented on July 8th 19 at 16:16
as far as I know, if the user has an avatar in Gravatar, and there it is, and it can vary. Never delved into this problem, unfortunately, the exact answer can not give. Try to look at the Gravatar API https://ru.gravatar.com/site/implement/ - santina90 commented on July 8th 19 at 16:19

Find more questions by tags WordPress