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: <ul> <li>wp_ai_client_before_generate_result</li> <li>wp_ai_client_after_generate_result</li> </ul>
50*- wp_ai_client_after_generate_result51*52* @since 7.0.053*54* @param object$event The event object.55*/56do_action("wp_ai_client_{$event_name}",$event);5758return$event;59}6061/**62* Converts an event objectclassname to a WordPress action hook name portion.
History
Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.