How to update avatar user meta?
-
Hi according to my last question I have come across a good solution to upload files to buddypress avatars folder, now I want to know how to update user meta to show this avatar in my frontend.
code I used:
$avatarPath //is the path where the avatar is uploaded
update_user_meta( $user->ID, 'author_avatar', $avatarPath );
thanks in advance.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘How to update avatar user meta?’ is closed to new replies.