[buddypress-trac] [BuddyPress Trac] #8267: Storing avatar information into usermeta

buddypress-trac noreply at wordpress.org
Wed Apr 15 04:39:42 UTC 2020


#8267: Storing avatar information into usermeta
-------------------------+------------------------------
 Reporter:  stokim       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by stokim):

 {{{#!php
 $serialized_avatar_url = get_user_meta( $user_id, 'avatar_url', true );
 $avatar_url = $serialized_avatar_url ? maybe_unserialize(
 $serialized_avatar_url ) : null;
 You can get both size's url through $avatar_url['thumb'] and
 $avatar_url['full'];
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8267#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list