Smart Local AI 1.3.0 has 10 actions and 38 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 Smart Local AI fires an action
add_action( 'atlas_ai_exclusions_changed', function( $arg1, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Smart Local AI is about to use
add_filter( 'atlas_ai_personaflow_recommendation_query', function( $score, $pid, $visitor_hash ) {
// Change $score here.
return $score;
}, 10, 3 );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 recommendation score for a post. */ apply_filters( 'atlas_ai_personaflow_recommendation_query', $score, $pid, $visitor_hash ); -
/** * Tracking interval */ apply_filters( "{$this->client->getSlug()}_tracking_interval", '-1 minute' ); -
/** * After request to api server. */ do_action( "{$this->getSlug()}_after_request", $response, $route ); -
/** * After request to api server to route. */ do_action( "{$this->getSlug()}_after_request_{$route}", $response, $route ); -
/** * before request to api server. */ do_action( "{$this->getSlug()}_before_request", $params, $route, $headers, $this->clientVersion, $url ); -
/** * before request to api server to route. */ do_action( "{$this->getSlug()}_before_request_{$route}", $params, $route, $headers, $url ); -
/** * Request Blocking mode. Set it to true for debugging the response with after * request action. */ apply_filters( "{$this->getSlug()}_request_blocking_mode", $blocking ); -
/** * API EndPoint */ apply_filters( "{$this->slug}_AtlasAiDev_API_EndPoint", $this->API_EndPoint, $this->apiVersion, $this->clientVersion ); -
/** * Filter Final API URL for request */ apply_filters( "{$this->slug}_AtlasAiDev_API_URL", $URL, $this->API_EndPoint, $route, $this->apiVersion, $this->clientVersion ); -
/** * Filter Request Route string */ apply_filters( "{$this->slug}_request_route", $route ); -
/** * Fires after the exclusions changed. */ do_action( 'atlas_ai_exclusions_changed', self::rev(), (bool) $bulk ); -
/** * Filter the taxonomies whose terms can be excluded from recommendations. */ apply_filters( 'atlas_ai_exclusions_taxonomies', array_values( array_unique( $slugs ) ) ); -
/** * Filter how many of the newest indexed posts are scored per visitor. */ apply_filters( 'atlas_ai_personaflow_candidate_limit', 1000 ); -
/** * Filter the content type PersonaFlow recommends on a page. */ apply_filters( 'atlas_ai_personaflow_context_post_type', $type, (int) $post_id ); -
/** * Filter PersonaFlow cron schedules. */ apply_filters( 'atlas_ai_personaflow_cron_schedules', $schedules ); -
/** * Filter the "Recommended for you" widget settings for one content type. */ apply_filters( 'atlas_ai_personaflow_display_settings', $frontend_data['settings'], self::CONTEXT_BLOG === $context ? 'post' : get_post_type() ); -
/** * Fires after a PersonaFlow event is stored. */ do_action( 'atlas_ai_personaflow_event_stored', $event_type, $post_id, $visitor_hash, $weight ); -
/** * Filter where the PersonaFlow recommendations script loads. */ apply_filters( 'atlas_ai_personaflow_frontend_context', $context, $page ); -
/** * Fires after a PersonaFlow taste profile is computed. */ do_action( 'atlas_ai_personaflow_profile_computed', $visitor_hash, $taste_vector ); -
/** * Filter the final recommendation results. */ apply_filters( 'atlas_ai_personaflow_recommendation_results', $results, $visitor_hash ); -
/** * Filter the valid PersonaFlow signal types. */ apply_filters( 'atlas_ai_personaflow_signal_types', $types ); -
/** * Filter the computed weight for a signal. */ apply_filters( 'atlas_ai_personaflow_signal_weight', $computed, $event_type, $default ); -
/** * Filter PersonaFlow database tables. */ apply_filters( 'atlas_ai_personaflow_tables', array( $pf_events, $pf_profiles, $pf_cache ) ); -
/** * Filter the PersonaFlow tracker configuration. */ apply_filters( 'atlas_ai_personaflow_tracker_config', $tracker_data ); -
/** * Filter data passed to the PersonaFlow JS tracker. */ apply_filters( 'atlas_ai_personaflow_tracker_js_data', $tracker_data ); -
/** * Filter whether PersonaFlow may record the current visitor. */ apply_filters( 'atlas_ai_personaflow_tracking_allowed', $allowed, $category ); -
/** * Filter the consent category PersonaFlow asks consent for. */ apply_filters( 'atlas_ai_privacy_consent_category', $category ); -
/** * Filter the list of data Smart Local AI collects about visitors. */ apply_filters( 'atlas_ai_privacy_data_items', $items ); -
/** * Fires when a user's Smart Local AI data is erased. */ do_action( 'atlas_ai_privacy_erase_user_data', $user_id, $hash ); -
/** * Filter the number of rows removed for a user. */ apply_filters( 'atlas_ai_privacy_erased_count', $removed, $user_id ); -
/** * Filter the personal data Smart Local AI exports for a user. */ apply_filters( 'atlas_ai_privacy_export_data', $data, $user, $page ); -
/** * Filter the post IDs that may be recommended, after exclusions. */ apply_filters( 'atlas_ai_recommendable_ids', $ids ); -
/** * Filter the content types to index and recommend. */ apply_filters( 'atlas_ai_relevantflow_content_types', array( $primary ) ); -
/** * Filter the related-posts widget settings for one content type. */ apply_filters( 'atlas_ai_relevantflow_display_settings', $settings, $post->post_type ); -
/** * Filter the setup wizard steps. */ apply_filters( 'atlas_ai_setup_steps', $core, $this->get_context() ); -
/** * Support Page URL */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Page_URL", false ); -
/** * Set Support Ticket Ajax Error Response. */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Request_Ajax_Error_Response", false, $_REQUEST ); -
AtlasAiDev_{$projectSlug}_Support_Request_Ajax_Success_Response
filter Copy link Customise this hook/** * Set Ajax Success Response for Support Ticket Submission */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Request_Ajax_Success_Response", false, $_REQUEST ); -
/** * Set Support Ticket Template For sending the email query. */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Ticket_Email_Template", false ); -
/** * Set Ticket Recipient Email */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Ticket_Recipient_Email", false ); -
apply_filters( "{$this->client->getSlug()}_extra_uninstall_reasons", array(), $reasons ); -
apply_filters( "{$this->client->getSlug()}_tracker_data", $data ); -
apply_filters( "{$this->client->getSlug()}_tracking_default_notice_message", esc_html__( 'Want to help make %1$s even more awesome? Allow %1$s to collect non-sensitive diagnostic data and usage information.', 'smart-local-ai' ) ); -
apply_filters( "{$this->client->getSlug()}_what_tracked", $data ); -
do_action( 'atlas_ai_enqueue_bulk_alttext', $hook_suffix ); -
do_action( 'atlas_ai_render_bulk_alttext' ); -
AtlasAiDev_{$this->client->getSlug()}_freemius_deactivation_data
filter Copy link Customise this hookapply_filters( "AtlasAiDev_{$this->client->getSlug()}_freemius_deactivation_data", array() ); -
apply_filters( 'AtlasAiDev_is_local', isset( $_SERVER['REMOTE_ADDR'] ) ? in_array( $_SERVER['REMOTE_ADDR'], [ '127.0.0.1', '::1' ] ) : true );
Generated from Smart Local 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: