Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_profile_image()

Description

Generate the url to the user's profile image. Fetch the url by the user's id or by the profile image filename.

Parameters

ColumnTypeDefaultDescription
$user_ref int "" User id of the user who's profile image is requested.
$by_image string "" The filename of the profile image to fetch having been collected from the db separately: user.profile_image

Return

string The url to the user's profile image if available or blank if not set.

This article was last updated 4th October 2022 11:35 Europe/London time based on the source file dated 28th September 2022 20:05 Europe/London time.