LLMS_REST_Authentication::check_permissions( mixed $result, WP_REST_Server $server, WP_REST_Request $request )
Check if the API Key can perform the request.
Description Description
Parameters Parameters
- $result
-
(Required) Response to replace the requested version with.
- $server
-
(Required) Server instance.
- $request
-
(Required) Request used to generate the response.
Return Return
(mixed)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-authentication.php
Changelog Changelog
Version | Description |
---|---|
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. |