Sometimes you want to add your own avatar for a user or build your own special predefined avatar selection :)
WHERE ARE THEY STORED
BuddyPress stores avatars in /wp-content/uploads/avatars/ – USERID – /
HOW ARE THEY STORED
BuddyPress hashes the original filename and stores full and thumbnail images in the above directory.
1 2 3 |
$full_filename = wp_hash( "ORIGINAL-FILENAME" . time() ) . '-bpfull.' . $FILE_EXTENSION; $thumb_filename = wp_hash( "ORIGINAL-FILENAME" . time() ) . '-bpthumb.' . $FILE_EXTENSION; |
Now go ahead and build your own integration around that ;)