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.


Top ↑

Return Return

(WP_Error|LLMS_REST_Webhook)


Top ↑

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 );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.17 Remove reference to 'pending_delivery' (unused) column.
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.