do_action( “wp_ai_client_{$event_name}”, object $event )

In this article

Fires when an AI client event is dispatched.

Description

The dynamic portion of the hook name, $event_name, refers to the snake_case version of the event class name, without the _event suffix.

For example, an event class named BeforeGenerateResultEvent will fire the wp_ai_client_before_generate_result action hook.

In practice, the available action hook names are:

  • wp_ai_client_before_generate_result
  • wp_ai_client_after_generate_result

Parameters

$eventobject
The event object.

Source

do_action( "wp_ai_client_{$event_name}", $event );

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

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