[wp-trac] [WordPress Trac] #64935: Hooks do not fire for wp_ai_client_prompt() flows.
WordPress Trac
noreply at wordpress.org
Tue Mar 24 12:39:17 UTC 2026
#64935: Hooks do not fire for wp_ai_client_prompt() flows.
--------------------------------------+-----------------------
Reporter: shadyvb | Owner: flixos90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: AI | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Changes (by flixos90):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"62101" 62101]:
{{{
#!CommitTicketReference repository="" revision="62101"
AI: Fix prompt lifecycle hooks not firing for `wp_ai_client_prompt()`
flow.
This broke while porting over the relevant logic from the `wp-ai-client`
package to Core.
With this changeset, the lifecycle hooks
`wp_ai_client_before_generate_result` and
`wp_ai_client_after_generate_result` fire as expected.
Props shadyvb, gziolo.
Fixes #64935.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64935#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list