Skip to main content

Website Users

This section covers functions for retrieving website user information.

getUsersWithGroup

Fetches users belonging to a specific group.

Parameters

ParameterTypeDescription
grouparray|string|intThe group(s) to filter users by.
orderstringSorting order: ASC or DESC.
limitintMaximum number of users to retrieve (Max: 100).

Usage

{{ print_r(getUsersWithGroup([1,2,3], "desc", 10) }}

getUsers

Retrieves a list of users.

Parameters

ParameterTypeDescription
orderstringSorting order: ASC or DESC.
limitintMaximum number of users to retrieve (Max: 100).

Usage

{{ print_r(getUsers("ASC","30")) }}

getUser

Fetches information for a specific user.

Parameters

ParameterTypeDescription
idintThe ID of the user.

Usage

{{ print_r(getUser(500)) }}