| Hook Name | Type | Parameters | Description |
|---|---|---|---|
talkativewp_chatbot_before_send | apply_filters | $message, $user_id | Modify or filter the message before sending it to the AI assistant. |
talkativewp_chatbot_after_send | do_action | $response, $user_id | Triggered after receiving a response from the assistant. |
talkativewp_chatbot_user_data | apply_filters | $user_data, $user_id | Extend user data sent along with chat (e.g. metadata, WooCommerce data). |
talkativewp_chatbot_ui_custom | do_action | None | Inject custom HTML into the chat UI (e.g. extra buttons, notices). |
talkativewp_save_chat_before | do_action | $chat_data | Fired before a chat is saved to the database. |
talkativewp_save_chat_after | do_action | $chat_id, $chat_data | Fired after a chat is saved successfully. Useful for integrations. |
talkativewp_webhook_before_send | apply_filters | $payload, $webhook_url | Modify the data payload sent to the external webhook. |
talkativewp_support_form_before_send | apply_filters | $form_data | Modify the support form submission before sending it to webhook/API. |
talkativewp_support_form_after_send | do_action | $form_data, $response | Triggered after the support form is sent. |
Notes: #
- All hooks are namespaced with
talkativewp_to avoid conflicts. - You can hook into them from your theme or a custom plugin.
- Use
add_action()oradd_filter()as appropriate. - Make sure any hook logic is fast/non-blocking to avoid performance issues.