WordPress\AiClient

AiClient::getEventDispatcherpublic staticWP 0.4.0

Gets the event dispatcher for prompt lifecycle events.

Method of the class: AiClient{}

No Hooks.

Returns

EventDispatcherInterface|null. The event dispatcher, or null if not set.

Usage

$result = AiClient::getEventDispatcher(): ?EventDispatcherInterface;

Changelog

Since 0.4.0 Introduced.

AiClient::getEventDispatcher() code WP 7.0

public static function getEventDispatcher(): ?EventDispatcherInterface
{
    return self::$eventDispatcher;
}