Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How to update avatar in buddypress programmatically? I have a script, which gets the image url and I want to update the url in the database, so that that image will will be avatar of the user.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

WordPress does not save the value of the avatar image in any database. It looks in the file system for avatar image and displays it on the website.

So, I am planning to download the image to the server, which is running the WordPress (BuddyPress). I need to create a directory with the name same as user ID, in the directory /wp-content/uploads/avatars/ and put two images, one as -bpfull.jpg (full image) and -bpthumb.jpg (thumbnail image). And these images will be displayed for that user, automatically.

share|improve this answer
    
Sorry I flagged this as not being an answer in error. –  WebTechGlobal Mar 10 at 0:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.