LLMS_REST_Authentication::authenticate( int|false $user_id )
Authenticate an API Request
Description Description
Parameters Parameters
- $user_id
-
(Required) WP_User ID of an already authenticated user or false.
Return Return
(int|false)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-authentication.php
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.5 | Load all includes to accommodate plugins and themes that call determine_current_user early. |
| 1.0.0-beta.12 | Call llms_rest_authorization_required_error() instructing to not check if the current user is logged in to avoid infinite loops. |
| 1.0.0-beta.1 | Introduced. |