Website Users
This section covers functions for retrieving website user information.
getUsersWithGroup
Fetches users belonging to a specific group.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| group | array|string|int | The group(s) to filter users by. | 
| order | string | Sorting order: ASC or DESC. | 
| limit | int | Maximum number of users to retrieve (Max: 100). | 
Usage
{{ print_r(getUsersWithGroup([1,2,3], "desc", 10) }}
getUsers
Retrieves a list of users.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| order | string | Sorting order: ASC or DESC. | 
| limit | int | Maximum number of users to retrieve (Max: 100). | 
Usage
{{ print_r(getUsers("ASC","30")) }}
getUser
Fetches information for a specific user.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| id | int | The ID of the user. | 
Usage
{{ print_r(getUser(500)) }}