LLMS_REST_API_Keys_Controller::delete_item( WP_REST_Request $request )
Delete API Key
Parameters Parameters
- $request
-
(WP_REST_Request) (Required) Request object.
Return Return
(WP_Error|WP_REST_Response)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-api-keys-controller.php
/** * Delete API Key * * @since 1.0.0-beta.1 * * @param WP_REST_Request $request Request object. * @return WP_Error|WP_REST_Response */ public function delete_item( $request ) { $key = $this->get_object( $request['id'], false ); if ( ! is_wp_error( $key ) ) { $key->delete();
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |