Custom Avatar upload | Wordpress - No plugin
问题 I am trying to allow my users to replace their avatar picture in their profile page. I built a custom wordpress theme and I can get as far as getting the image data with JavaScript and previewing the selected image. How can I then update the current user's avatar? I already have the current user information with $current_user = wp_get_current_user(); Would highly prefer to do this without a plugin, but if its much easier than why not.. 来源: https://stackoverflow.com/questions/62030815/custom