LLMS_REST_Webhooks::create( array $data )
Create a new API Key
Parameters Parameters
- $data
-
(array) (Required) Associative array of data to set to a key's properties.
Return Return
(WP_Error|LLMS_REST_Webhook)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-webhooks.php
public function create( $data ) { $data = $this->create_prepare( $data ); if ( is_wp_error( $data ) ) { return $data; } // Can't set this property during creation. unset( $data['failure_count'] ); return $this->save( new $this->model(), $data ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.17 | Remove reference to 'pending_delivery' (unused) column. |
1.0.0-beta.1 | Introduced. |