LLMS_REST_Webhook_Data::__construct( int $id = null, bool $hydrate = true )

Constructor


Parameters Parameters

$id

(int) (Optional) API Key ID.

Default value: null

$hydrate

(bool) (Optional) If true, hydrates the object on instantiation if an ID is supplied.

Default value: true


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-webhook-data.php

	public function __construct( $id = null, $hydrate = true ) {

		$this->id = $id;
		if ( $this->id && $hydrate ) {
			$this->hydrate();
		}

		// Adds created and updated dates on instantiation.
		parent::__construct();

	}


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.