Get avatar
public get_avatar ( integer $user_id, boolean $query = false ) : string | ||
$user_id | integer | User ID of the user you want to retrieve the avatar for |
$query | boolean | Should we query the database if this user has not yet been loaded? Typically this should be left as false and you should make sure you load users ahead of time with load_users() |
return | string |
/** * Get the user's avatar */ public function get_avatar() { return $this->user_loader->get_avatar($this->get_data('from_user_id'), false, true); }
/** * {@inheritdoc} */ public function get_avatar() { return $this->user_loader->get_avatar($this->item_id, false, true); }