Resource functions
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions
Share functions
Tab functions
Dash functions

get_profile_image

Fetch the URL of the user's profile image by the user's id or by the profile image filename.

Variable Description Data type
$user_ref
User ID of the user who's profile image is requested. int
$by_image The filename of the profile image to fetch having been collected from the db separately: user.profile_image string

Return values

String containing the URL to the user's profile image if available or blank if not set.