Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 15th May 2021 00:05 Europe/London time based on the source file dated 10th May 2021 17:30 Europe/London time.