LLMS_REST_API_Keys::is_data_valid( array $data )
Validate data supplied for creating/updating a key.
Description Description
Parameters Parameters
- $data
-
(Required) Associative array of data to set to a key's properties.
- 'description'
(string) A friendly name for the key. - 'user_id'
(int) WP_User ID of the key's owner. - 'permissions'
(string) Permission string for the key. Acceptsread,write, orread_write.
- 'description'
Return Return
(WP_Error|true) When data is invalid will return a WP_Error with information about the invalid properties, otherwise true denoting data is valid.
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-api-keys.php
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.1 | Introduced. |