Search Insights 2.1 has 5 actions and 17 filters, read directly from its source code on Nov 18, 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 Search Insights fires an action
add_action( 'wpsi_after_search_tracking', function( $search_term ) {
// Your code runs here.
}, 10, 1 );
// Change a value Search Insights is about to use
add_filter( 'wpsi_process_search_term', function( $value, $search_term, $result_count ) {
// Change $value here.
return $value;
}, 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
-
/** * allow skipping this search term */ apply_filters( 'wpsi_process_search_term', true, $search_term, $result_count ); -
/** * allow manipulation of search term */ apply_filters( 'wpsi_search_term', $search_term, $result_count ); -
do_action( 'wpsi_after_search_tracking', $search_term ); -
apply_filters( "wpsi_ajax_content_{$type}", $html, $start, $end, $page, $filter ); -
apply_filters( 'wpsi_batch_size', 200 ); -
apply_filters( 'wpsi_dashboard_grid_items', $this->grid_items ); -
apply_filters( 'wpsi_dashboard_widget_cache_time', HOUR_IN_SECONDS ); -
apply_filters( 'wpsi_datatable_columns', $base_columns ); -
apply_filters( 'wpsi_get_caller_by_search_parameter', 'wordpress', $search_parameter ); -
do_action( 'wpsi_on_settings_page' ); -
apply_filters( 'wpsi_popular_search_row_args', $args, $search, $start, $end ); -
apply_filters( 'wpsi_popular_searches_args', $args, $page ); -
apply_filters( 'wpsi_popular_searches_html', $top_html, $top_searches, $page, $limit, $filter ); -
apply_filters( 'wpsi_settings_blocks', $blocks ); -
do_action( 'wpsi_spam_blocked', $search_term ); -
apply_filters( 'wpsi_spam_filter_override', null, $decoded_term ); -
apply_filters( 'wpsi_spam_keywords', [] ); -
apply_filters( 'wpsi_spam_threshold', 60 ); -
do_action( "wpsi_tab_content_{$key}" ); -
do_action( 'wpsi_tab_options' ); -
apply_filters( 'wpsi_table_row_data', $row_data, $search ); -
apply_filters( 'wpsi_tabs', array( 'dashboard' => array( 'title' => __("General", "wp-search-insights"), ), 'settings' => array( 'title' => __("Settings", "wp-search-insights"), 'capability' => 'manage_options', ), ) );
Generated from Search Insights'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: