AI Chatbot for WordPress 1.0.33 has 10 actions and 26 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 AI Chatbot for WordPress fires an action
add_action( 'lumo_smartchat_api_edition_booted', function( $exists ) {
// Your code runs here.
}, 10, 1 );
// Change a value AI Chatbot for WordPress is about to use
add_filter( 'lumo_smartchat_providers', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
/** * Filter the provider id → label map shown in admin. */ apply_filters( 'lumo_smartchat_providers', array( 'lumo' => $label ) ); -
/** * Filter the maximum characters of STORE LEARNING injected into the prompt. */ apply_filters( 'lumo_smartchat_store_learning_max_chars', 12000 ); -
/** * Filter the customer-facing AI gateway name. */ apply_filters( 'lumo_ai_kit_brand_label', $label, (string) self::config( 'plugin_slug', '' ) ); -
/** * Filter reusable AIKit configuration for any Lumo plugin. */ apply_filters( 'lumo_ai_kit_config', $ai_kit_config, LUMOSMARTCHAT_SLUG ); -
/** * Filter a model label shown in plugin UI. The API id is never changed. */ apply_filters( 'lumo_ai_kit_model_display_name', $display, $model_id, $api_name, $kind_key, (string) self::config( 'plugin_slug', '' ) ); -
/** * Filter SmartChat-specific AIKit configuration. */ apply_filters( 'lumo_smartchat_ai_kit_config', $ai_kit_config ); -
/** * Filter whether direct third-party AI providers are allowed. */ apply_filters( 'lumo_smartchat_allow_direct_providers', $allow ); -
/** * Filter the SmartChat API edition slug. */ apply_filters( 'lumo_smartchat_api_edition', $slug ); -
/** * Fires after the API edition and AIKit have been resolved. */ do_action( 'lumo_smartchat_api_edition_booted', class_exists( 'LumoSmartChat\\Core\\Edition' ) ? Core\Edition::slug() : 'direct' ); -
/** * Filter API tab context before the edition partial is loaded. */ apply_filters( 'lumo_smartchat_api_tab_context', $lsc_api_tab_context ); -
/** * Filter how many chunks are embedded per API request. */ apply_filters( 'lumo_smartchat_embed_slice_size', $size ); -
/** * Filter whether the diagnostics log accepts writes. */ apply_filters( 'lumo_smartchat_error_log_enabled', $enabled ); -
/** * Fires after a failure is stored. */ do_action( 'lumo_smartchat_error_logged', $id, $level, $scope, $code ); -
/** * Fires after a gateway API key is persisted. */ do_action( 'lumo_smartchat_gateway_key_saved', $gateway_key_saved ); -
/** * Filter whether SmartChat has credentials to run the storefront widget. */ apply_filters( 'lumo_smartchat_has_api_credentials', $ok ); -
/** * Filter how long one indexing run may keep working. */ apply_filters( 'lumo_smartchat_index_time_budget', 20.0 ); -
/** * Fires after Lumo SmartChat AI is fully initialized. */ do_action( 'lumo_smartchat_init' ); -
/** * Filter recommended gateway model ids. */ apply_filters( 'lumo_smartchat_recommended_models', $list, $kind ); -
/** * Trust proxy headers only when the hosting environment explicitly opts in. */ apply_filters( 'lumo_smartchat_trusted_proxy_ips', false, $remote ); -
/** * Fires after SmartChat has booted, with the feature map for this edition. */ do_action( 'lumosmartchat/boot', Core\Features::all() ); -
/** * Filter one SmartChat feature flag. */ apply_filters( 'lumosmartchat/feature_enabled', $on, $feature ); -
/** * Filter the SmartChat feature map. */ apply_filters( 'lumosmartchat/features', $defaults ); -
do_action( 'lumomail_log_event', array( 'source' => 'lumo-smartchat-ai', 'status' => 'skipped', 'message' => $message, ) ); -
apply_filters( 'wpml_element_trid', null, $object_id, $element_type ); -
apply_filters( 'wpml_element_type', $type ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'lumo_smartchat_gateway_key_cleared' ); -
do_action( 'lumo_smartchat_honeypot_triggered', $reason, ClientIp::resolve() ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_get_element_translations', null, (int) $trid, $element_type ); -
apply_filters( 'wpml_object_id', $object_id, $type, $fallback, self::normalize( $language ) ); -
apply_filters( 'wpml_post_language_details', null, $object_id ); -
do_action( 'wpml_register_single_string', self::STRING_DOMAIN, $name, $value, false, self::normalize( $source_language ) ); -
apply_filters( 'wpml_translate_single_string', $value, self::STRING_DOMAIN, $name, self::normalize( $language ) );
Generated from AI Chatbot for WordPress'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: