LLMS_REST_API_Keys_Controller::validate_user_exists( int $value )
Validate submitted user IDs are real user ids.
Parameters Parameters
- $value
-
(int) (Required) User-submitted value.
Return Return
(boolean)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-api-keys-controller.php
$user = get_user_by( 'id', $value ); return $user ? true : false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |