Collections functions
General functions
Render functions
Theme permission functions
User 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 10th December 2023 07:35 Europe/London time based on the source file dated 4th December 2023 11:05 Europe/London time.