LLMS_REST_API_Keys::create( array $data )

Create a new API Key


Description Description


Parameters Parameters

$data

(Required) Associative array of data to set to a key's properties.

  • 'description'
    (string) (Required) A friendly name for the key.
  • 'user_id'
    (int) WP_User (Required) ID of the key's owner.
  • 'permissions'
    (string) (Required) Permission string for the key. Accepts read, write, or read_write.


Top ↑

Return Return

(WP_Error|LLMS_REST_API_Key)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/class-llms-rest-api-keys.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.