Smarto AI Customer Support Chatbot, Helpdesk & Support Tickets 1.0.5 has 28 actions and 50 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Smarto AI Customer Support Chatbot, Helpdesk & Support Tickets fires an action
add_action( 'smartoaics_delete_files', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Smarto AI Customer Support Chatbot, Helpdesk & Support Tickets is about to use
add_filter( 'smartoaics_should_index_post', function( $ok, $post ) {
// Change $ok here.
return $ok;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires when stored files of a ticket are no longer needed. */ do_action( 'smartoaics_delete_files', (array) $event['meta']['attachments'] ); -
/** * Filters whether a post is used as knowledge. Use it to keep members-only * content out. */ apply_filters( 'smartoaics_should_index_post', $ok, $post ); -
/** * Fires after the assets of an AI Support screen are enqueued. */ do_action( 'smartoaics_admin_assets', $screen ); -
/** * Filters the AI Support screens: [slug, title, capability, callback, screen * key]. Screens added here get the app layout and assets. */ apply_filters( 'smartoaics_admin_pages', $pages ); -
/** * Filters post types that are never used as knowledge. */ apply_filters( 'smartoaics_blocked_post_types', $blocked ); -
/** * Fires before a chat is ended. */ do_action( 'smartoaics_chat_closing', $session, $by ); -
/** * Fires when a chat is ended. */ do_action( 'smartoaics_chat_ended', $id, $by ); -
/** * Filters the answer sent to the widget. */ apply_filters( 'smartoaics_chat_response', $response, $result, $session ); -
/** * Filters the buttons at the top of one conversation. */ apply_filters( 'smartoaics_conversation_actions', $actions, $id ); -
/** * Fires inside the details list of a conversation, to add rows (dt and dd). */ do_action( 'smartoaics_conversation_details', $session ); -
/** * Fires in the side column of a conversation, to add whole cards (for example * tags). */ do_action( 'smartoaics_conversation_side', $session ); -
/** * Fires inside the status cell of a conversation, to add badges. */ do_action( 'smartoaics_conversation_status', $row ); -
/** * Filters the buttons at the top of the conversations list. */ apply_filters( 'smartoaics_conversations_actions', '', $status, $search ); -
/** * Filters how customers are told to answer, in their emails. */ apply_filters( 'smartoaics_customer_email_hint', __( 'To answer, use the "View and reply" button. You will see the whole conversation there.', 'smarto-ai-customer-support' ) ); -
/** * Filters the address customers' email replies go to. */ apply_filters( 'smartoaics_customer_reply_address', self::team_email() ); -
/** * Filters a ticket email (HTML and plain text). */ apply_filters( 'smartoaics_email', $out, $type, $args ); -
/** * Filters the parts of a ticket email before it is built. */ apply_filters( 'smartoaics_email_args', $args, $type ); -
/** * Short-circuits the domain check. Return ok, missing or unknown. */ apply_filters( 'smartoaics_email_domain_status', null, $domain ); -
/** * Send the sample of an add-on's email (it is caught, not sent). */ do_action( 'smartoaics_email_preview', $type, $ticket ); -
/** * Filters the emails listed for preview in Settings. */ apply_filters( 'smartoaics_email_previews', $types ); -
/** * Filters the history sent to the widget. */ apply_filters( 'smartoaics_history_payload', $payload, $session ); -
/** * Filters the LMS drivers, checked in order. */ apply_filters( 'smartoaics_lms_drivers', array( new Tutor_Driver(), new Learnpress_Driver() ) ); -
/** * Filters the order data shown to the visitor. Never add personal or payment * data. */ apply_filters( 'smartoaics_order_data', array_filter( $data, static fn( $v ) => '' !== $v && array() !== $v ), $order ); -
/** * Filters tracking details for an order. */ apply_filters( 'smartoaics_order_tracking', $out, $order ); -
/** * Filters the suggested questions for a page. */ apply_filters( 'smartoaics_page_questions', $questions, $page ); -
/** * Filters the files sent with the reply form, stored by an add-on. */ apply_filters( 'smartoaics_portal_files', array( array(), 0 ), $ticket ); -
/** * Fires inside the customer's reply form, after the message box. */ do_action( 'smartoaics_portal_form_fields', $ticket ); -
/** * Filters the knowledge text of a post. */ apply_filters( 'smartoaics_post_knowledge_text', implode( "\n\n", array_filter( $parts ) ), $post ); -
/** * Lets an add-on answer a message instead of the AI. Return null to let the AI * answer. */ apply_filters( 'smartoaics_pre_chat', null, $session, $message, $page ); -
/** * Filters extra handoff rules for the assistant, one per line, each ending * with a new line. */ apply_filters( 'smartoaics_prompt_rules', '' ); -
/** * Short-circuits provider creation, for example to add a provider or a test * double. */ apply_filters( 'smartoaics_provider_instance', null, $id ); -
/** * Filters a reply after the style clean-up. */ apply_filters( 'smartoaics_reply_style', $text ); -
/** * Fires before a chat and its messages are deleted, for example to remove * files. */ do_action( 'smartoaics_session_deleting', $id ); -
/** * Filters the session data sent to the widget. */ apply_filters( 'smartoaics_session_payload', $payload, $session ); -
/** * Filters the setting fields, so add-ons can store their settings in the same * option and save them with the same form. */ apply_filters( 'smartoaics_settings_fields', $fields ); -
/** * Fires at the end of a setup step, so add-ons can add their own fields. * Fields named after a setting are saved with the step. */ do_action( "smartoaics_setup_step_{$n}" ); -
/** * Filters whether the chat widget shows on the current page. */ apply_filters( 'smartoaics_show_widget', true ); -
/** * Filters what the assistant believes the site offers. */ apply_filters( 'smartoaics_site_features', array( 'store' => $store, 'courses' => $courses, 'services' => $services, 'articles' => $articles, 'accounts' => $accounts, ) ); -
/** * Filters custom field (meta) keys that are never used as knowledge. */ apply_filters( 'smartoaics_skip_meta_keys', $skip ); -
/** * Filters the fixed part of the system prompt (the same on every message, * cached by the AI provider). Add only text that does not change from message * to message. */ apply_filters( 'smartoaics_system_prompt', implode( "\n\n", $sections ), $context ); -
/** * Filters the team member name shown on the customer's reply page. */ apply_filters( 'smartoaics_team_public_name', $name, $user_id ); -
/** * Fires for a bulk action (nonce and rights already checked). */ do_action( 'smartoaics_ticket_bulk', $action, $ids, $user ); -
/** * Fires inside the bulk action menu, to add options. */ do_action( 'smartoaics_ticket_bulk_options' ); -
/** * Prints the cell of an add-on column, including its <td>. */ do_action( 'smartoaics_ticket_column', $column, $row ); -
/** * Filters the inbox columns. Add-ons print their cells in * "smartoaics_ticket_column". */ apply_filters( 'smartoaics_ticket_columns', $columns ); -
/** * Fires after a ticket is created (from the chat or the "Message the team" * form). */ do_action( 'smartoaics_ticket_created', $ticket ); -
/** * Fires after a customer answered a ticket. */ do_action( 'smartoaics_ticket_customer_replied', $ticket, $message, $via ); -
/** * Fires inside the ticket details form, before Save. */ do_action( 'smartoaics_ticket_details_fields', $ticket ); -
/** * Prints an add-on's event in the ticket timeline. */ do_action( 'smartoaics_ticket_event', $event, $who, $at ); -
/** * Fires inside a customer's answer, to show the files they sent. */ do_action( 'smartoaics_ticket_event_files', $event ); -
/** * Fires after the team replied to a ticket. */ do_action( 'smartoaics_ticket_replied', $ticket, $message, $user_id ); -
/** * Filters the note under the Reply title. */ apply_filters( 'smartoaics_ticket_reply_help', $help, $ticket ); -
/** * Fires above the reply box, for example to insert saved replies. */ do_action( 'smartoaics_ticket_reply_tools', $ticket ); -
/** * Fires after a ticket status changes. */ do_action( 'smartoaics_ticket_status_changed', $ticket, $status ); -
/** * Filters who hears about a customer's answer. */ apply_filters( 'smartoaics_ticket_team_email', self::team_email(), $ticket ); -
/** * Fires when the ticket details form is saved (nonce and rights already * checked). */ do_action( 'smartoaics_ticket_update', $id, $user ); -
/** * Filters the buttons at the top of the inbox. */ apply_filters( 'smartoaics_tickets_actions', Pro_Promo::is_pro_active() ? '' : self::pro_buttons(), $filters ); -
/** * Fires after the status chips, to add more filters. */ do_action( 'smartoaics_tickets_chips', $status ); -
/** * Whether an add-on filter (for example "Assigned to me") is active, so no * status chip is. */ apply_filters( 'smartoaics_tickets_filtered', false ); -
/** * Filters the inbox query. */ apply_filters( 'smartoaics_tickets_query', array( 'status' => $filters['status'], 'type' => $type, 'assigned' => 0, 'search' => $search, 'paged' => $paged, 'per_page' => 25, ) ); -
/** * Filters the figures under the status filters: [label, value, note]. */ apply_filters( 'smartoaics_tickets_stats', $cards ); -
/** * Renders an add-on screen inside Tickets (?view=...). */ do_action( "smartoaics_tickets_view_{$view}" ); -
/** * Filters the tools offered to the support agent. */ apply_filters( 'smartoaics_tools', $tools, $context ); -
/** * Prints messages from add-ons (team replies, notes, chat events) in a * transcript. */ do_action( 'smartoaics_transcript_message', $message ); -
/** * Fires inside a visitor message in a transcript, for example to show files. */ do_action( 'smartoaics_transcript_user_message', $message ); -
/** * Filters the visitor's two letter country code, for other location sources. */ apply_filters( 'smartoaics_visitor_country', $code, Visitor::ip() ); -
/** * Filters the visitor IP (for sites behind a proxy or CDN that sets a trusted * header). */ apply_filters( 'smartoaics_visitor_ip', $ip ); -
/** * Filters how other messages (for example from an add-on) show in the widget. */ apply_filters( 'smartoaics_visitor_message', null, $row ); -
/** * Filters a fixed message shown to chat visitors. */ apply_filters( 'smartoaics_visitor_text', $default, $key, $default ); -
/** * Filters the widget config. "styles" holds extra stylesheet URLs loaded * inside the widget's Shadow DOM. */ apply_filters( 'smartoaics_widget_config', $config, $mode ); -
/** * Filters the scripts that load before the widget. Add-ons register scripts * that push a function into window.smartoaicsWidgetAddons; the widget calls * each one with its Widget class before it starts. */ apply_filters( 'smartoaics_widget_dependencies', array(), $mode ); -
/** * Filters any message as the widget shows it, for example to add files from an * add-on. */ apply_filters( 'smartoaics_widget_message_item', $item, $row ); -
/** * Filters the texts visitors see in the widget. */ apply_filters( 'smartoaics_widget_strings', $strings ); -
apply_filters( 'smartoaics_license_url', 'https://wpsmarto.com/dashboard' ); -
apply_filters( 'smartoaics_pro_active', false ); -
do_action( "smartoaics_settings_{$slot}" ); -
woocommerce_shortcode_order_tracking_order_id
filter Used by 42 plugins → Copy link Customise this hookapply_filters( 'woocommerce_shortcode_order_tracking_order_id', $number );
Generated from Smarto AI Customer Support Chatbot, Helpdesk & Support Tickets's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: