Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Is it possible to get only the avatar-url ?


Burt Adsit
Participant

@burtadsit

In bp-core-classes.php is BP_Core_User

/**
* BP_Core_User class can be used by any component. It will fetch useful
* details for any user when provided with a user_id.
*
* Example:
* $user = new BP_Core_User( $user_id );
* $user_avatar = $user->avatar;
* $user_email = $user->email;
* $user_status = $user->status;
* etc.
*
* @package BuddyPress Core
*/

Lots of stuff in that class. You need a user id to instantiate one.

Skip to toolbar