LLMS_REST_Capabilities::add( array $caps )
Add REST-specific capabilities to LifterLMS core cap lists.
Description Description
See also See also
Parameters Parameters
- $caps
-
(array) (Required) Assoc. array of existing caps, array key is the capability and the value is a bool (true = has cap).
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-capabilities.php
public static function add( $caps ) {
$caps['manage_lifterlms_api_keys'] = true;
$caps['manage_lifterlms_webhooks'] = true;
return $caps;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.1 | Introduced. |