LLMS_REST_Users_Controller::get_collection_params()
Retrieves the query params for the objects collection
Return Return
(array) Collection parameters.
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-users-controller.php
public function get_collection_params() {
$params = parent::get_collection_params();
$params['roles'] = array(
'description' => __( 'Include only users keys matching matching a specific role. Accepts a single role or a comma separated list of roles.', 'lifterlms' ),
'type' => 'array',
'items' => array(
'type' => 'string',
'enum' => $this->get_enum_roles(),
),
);
return $params;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.1 | Introduced. |