LLMS_REST_Webhooks_Controller::get_object( int $id, bool $hydrate = true )

Retrieve An Webhook object by ID.


Parameters Parameters

$id

(int) (Required) Webhook ID.

$hydrate

(bool) (Optional) If true, pulls all key data from the database on instantiation.

Default value: true


Top ↑

Return Return

(WP_Error|LLMS_REST_API_Key)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/server/class-llms-rest-webhooks-controller.php

	protected function get_object( $id, $hydrate = true ) {

		if ( ! is_numeric( $id ) ) {
			$id = $this->get_object_id( $id );
		}

		$key = LLMS_REST_API()->webhooks()->get( $id, $hydrate );
		return $key ? $key : llms_rest_not_found_error();

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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