WP Engine Smart Search AI 0.3.35 has 10 actions and 12 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 WP Engine Smart Search AI fires an action
add_action( 'wpe_auth_after_registration', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value WP Engine Smart Search AI is about to use
add_filter( 'wpe_auth_core_connect_page', 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 admin page slug that hosts the connect start handler. */ apply_filters( 'wpe_auth_core_connect_page', self::DEFAULT_PAGE_SLUG ); -
/** * Fires after a site is fully registered with ai-gateway and a project is * bound. Subscribers can use this to flush any buffered work that required a * valid bearer token (e.g. queued lifecycle events). */ do_action( 'wpe_auth_after_registration', array( 'project_id' => $project_id, 'project_name' => $project_name, 'client_id' => (string) $pending['client_id'], 'site_id' => $site_id, 'is_new' => true, ) ); -
/** * Filters the anonymous visitor cookie lifetime. */ apply_filters( 'wpe_auth_anon_cookie_expiry', self::ANON_COOKIE_EXPIRY_SECONDS ); -
/** * Filters the list of plugins that share wpe-auth-core. */ apply_filters( 'wpe_auth_core_family_plugins', array() ); -
/** * Fires on every attempted use of a gateway-signed ability token. */ do_action( 'wpe_auth_gateway_ability_used', array( 'success' => $success, 'route_type' => $route_match['type'], 'ability_name' => $route_match['name'], 'wp_user_id' => $wp_user_id, 'reason' => $reason, 'time' => time(), ) ); -
/** * Fires on every "Connect WordPress Account" consent bind attempt. */ do_action( 'wpe_auth_gateway_consent_attempt', array( 'success' => $success, 'wpe_user_subject' => $wpe_user_subject, 'wp_user_id' => $wp_user_id, 'reason' => $reason, 'time' => time(), ) ); -
/** * Fires when new OAuth scopes are detected in the JWT access token. */ do_action( 'wpe_auth_new_scopes_detected', $new_scopes, $current_scopes ); -
/** * Filter to customize recency time decay configuration. */ apply_filters( 'wpe_smartsearch/recency_time_decay_config', $default_time_decay, $recency_config, $query_vars ); -
do_action( 'qm/debug', $block['attrs'] ); -
do_action( 'qm/info', $message ); -
do_action( 'qm/notice', 'WP Engine Smart Search: WooCommerce support is DISABLED' ); -
do_action( 'wpengine_chatkit_block_render' ); -
apply_filters( 'get_ancestors', array_keys( $ancestors ), $term->term_id, $term->taxonomy, 'taxonomy' ); -
apply_filters( 'the_content', $post_content ); -
do_action( 'wp_verify_nonce_failed', $nonce, $action, $user, $token ); -
apply_filters( 'wpe_aitk_logging_enabled', $wp_debug_enabled ); -
apply_filters( 'wpe_smartsearch/get_geo_constraints', null, $query_vars ); -
apply_filters( 'wpe_smartsearch/get_order_by', $order_by, $query_vars, $query ); -
apply_filters( 'wpe_smartsearch/get_search_after', [], $query_vars ); -
apply_filters( 'wpe_smartsearch/search_hits', $ce_results['result']['documents'], $query_vars ); -
do_action( 'wpe_smartsearch/search_operation_completed', $hits, $query_vars ); -
apply_filters( 'wpe_smartsearch\attachment_source_format', $format );
Generated from WP Engine Smart Search AI'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: