Ajax Product Search for WooCommerce (ProSearch) 1.1.2 has 10 actions and 85 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 Ajax Product Search for WooCommerce (ProSearch) fires an action
add_action( 'mpsfw_index_after_scrapping', function( $product, $id, $lang, $options ) {
// Your code runs here.
}, 10, 4 );
// Change a value Ajax Product Search for WooCommerce (ProSearch) is about to use
add_filter( 'aws_seamless_search_form_filter', function( $markup, $search_form ) {
// Change $markup here.
return $markup;
}, 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
-
/** * Filter search form markup for seamless integration */ apply_filters( 'aws_seamless_search_form_filter', $markup, $search_form ); -
/** * What capability current user must have to view settings page */ apply_filters( 'mpsfw_admin_capability', 'manage_options' ); -
/** * Filter content string before striping shortcodes */ apply_filters( 'mpsfw_before_strip_shortcodes', $str ); -
/** * SQL query that used to create index table */ apply_filters( 'mpsfw_create_index_table_sql', $sql ); -
/** * Filters array of diacritic chars */ apply_filters( 'mpsfw_diacritic_chars', $chars ); -
/** * Filters to disable hooks relates to specific languages */ apply_filters( 'mpsfw_disable_multilangs_hooks', false, get_locale() ); -
/** * Exclude certain products from search */ apply_filters( 'mpsfw_exclude_products', array() ); -
/** * Filters extracted string */ apply_filters( 'mpsfw_extracted_string', $str, $source ); -
/** * Filters extracted terms before adding to index table */ apply_filters( 'mpsfw_extracted_terms', $str_array, $source ); -
/** * Filter form data parameters before output */ apply_filters( 'mpsfw_front_data_parameters', $params ); -
/** * Filter fuzzy search related parameters */ apply_filters( 'mpsfw_fuzzy_params', $fuzzy_params, $this->data ); -
/** * Tag to use for highlighting search words inside content */ apply_filters( 'mpsfw_highlight_tag', 'strong' ); -
/** * Filter products images size */ apply_filters( 'mpsfw_image_size', $image_size ); -
/** * Fires after starting to scrap product data for index table */ do_action( 'mpsfw_index_after_scrapping', $this->product, $this->id, $this->lang, $this->options ); -
/** * Apply or not WP filters to indexed content */ apply_filters( 'mpsfw_index_apply_filters', false ); -
/** * Fires before scraping product data for index table */ do_action( 'mpsfw_index_before_scrapping', $this->product, $this->id, $this->lang, $this->options ); -
/** * Run or not shortcodes inside product content */ apply_filters( 'mpsfw_index_do_shortcodes', $index_shortcodes ); -
/** * Products that will be indexed */ apply_filters( 'mpsfw_index_product_ids', $posts ); -
/** * Filters scrapped product index data before saving */ apply_filters( 'mpsfw_index_product_scraped_data', $this->mpsfw_scraped_data, $this->product, $this->id, $this->lang, $this->options ); -
/** * Filters product data array before it will be added to index table. */ apply_filters( 'mpsfw_indexed_data', $data, $data['id'], null ); -
/** * Filter seamless integrations default form markup */ apply_filters( 'mpsfw_js_seamless_searchbox_markup', $form_html, $forms ); -
/** * Filter seamless integrations js selectors for forms */ apply_filters( 'mpsfw_js_seamless_selectors', array() ); -
/** * Filters normalized string */ apply_filters( 'mpsfw_normalize_string', $string ); -
/** * Filters string before normalization */ apply_filters( 'mpsfw_pre_normalize_string', $string ); -
/** * Filters search string before normalization */ apply_filters( 'mpsfw_pre_normalized_search_string', $s ); -
/** * Filters product content. */ apply_filters( 'mpsfw_product_content_before_indexing', $content, $data['id'], $product ); -
/** * Filters product excerpt. */ apply_filters( 'mpsfw_product_excerpt_before_indexing', $excerpt, $data['id'], $product ); -
/** * Filters product title. */ apply_filters( 'mpsfw_product_title_before_indexing', $title, $data['id'], $product ); -
/** * Multiplier for relevance score depending on number of terms repeats */ apply_filters( 'mpsfw_relevance_count_multiplier', '1 + (count-1)/5', $this->data ); -
/** * Array of relevance parameters */ apply_filters( 'mpsfw_relevance_parameters', $relevance_params, $relevance_scores, $search_term, $this->data ); -
/** * Change relevance scores for product search fields */ apply_filters( 'mpsfw_relevance_scores', $relevance_array, $data ); -
/** * Filter current language code */ apply_filters( 'mpsfw_search_current_lang', $current_lang ); -
/** * Filter search data parameters */ apply_filters( 'mpsfw_search_data_parameters', $this->data ); -
/** * Filter additional product data */ apply_filters( 'mpsfw_search_data_params', $this->data, $post_id, $product ); -
/** * Filter number of suggested fixed terms */ apply_filters( 'mpsfw_search_fixed_terms_suggestions_num', $max_terms_to_suggest, $data ); -
/** * If no search results - apply filter to add custom ones */ apply_filters( 'mpsfw_search_no_results', $posts_ids, $s, $this->data ); -
/** * Filter search results custom data array */ apply_filters( 'mpsfw_search_page_custom_data', $this->data, $query, $posts ); -
/** * Return only current page products IDs id needed */ apply_filters( 'mpsfw_search_page_posts_objects_ids', false, $query, $this->data ); -
/** * Filter search query string for search results page */ apply_filters( 'mpsfw_search_page_query', $search_query, $query ); -
/** * Filter search page results */ apply_filters( 'mpsfw_search_page_results', $new_posts, $query, $this->data ); -
/** * Filter products array before output */ apply_filters( 'mpsfw_search_pre_filter_products', $products_array, $this->data ); -
/** * Filter single product search result */ apply_filters( 'mpsfw_search_pre_filter_single_product', $new_result, $post_id, $product ); -
/** * Filter search query parameters */ apply_filters( 'mpsfw_search_query_array', $query ); -
/** * Filter search query string */ apply_filters( 'mpsfw_search_query_string', $sql ); -
/** * Filters array of all results data before they displayed in search results */ apply_filters( 'mpsfw_search_results_all', $result_array, $s ); -
/** * Filters array of products before they displayed in search results */ apply_filters( 'mpsfw_search_results_products', $products_array, $s ); -
/** * Filters array of products ids */ apply_filters( 'mpsfw_search_results_products_ids', $posts_ids, $s, $this->data ); -
/** * Filters array of custom taxonomies that must be displayed in search results */ apply_filters( 'mpsfw_search_results_tax_archives', $tax_to_display, $s ); -
/** * Fires each time when performing the search */ do_action( 'mpsfw_search_start', $s ); -
/** * Exclude certain taxonomies terms from search */ apply_filters( 'mpsfw_search_tax_exclude', $excludes_array, $this->taxonomy, $this->search_string ); -
/** * Filters taxonomy term result */ apply_filters( 'mpsfw_search_tax_result_item', $new_result, $term, $result->taxonomy ); -
/** * Filters array of custom taxonomies that must be displayed in search results */ apply_filters( 'mpsfw_search_tax_results', $result_array, $this->taxonomy, $this->search_string ); -
/** * Filters array of search terms before generating SQL query */ apply_filters( 'mpsfw_search_terms', $this->data['search_terms'] ); -
/** * Max number of terms to show */ apply_filters( 'mpsfw_search_terms_number', $this->results_num ); -
/** * Enable or not automatical product data sync with index table */ apply_filters( 'mpsfw_sync_index_table', $sync, $product_id ); -
/** * Filters synonyms array before adding them to the index table where need */ apply_filters( 'mpsfw_synonyms_option_array', $synonyms_array ); -
/** * Filter array of search sql queries */ apply_filters( 'mpsfw_tax_search_array', $search_array, $this->taxonomy, $search_terms, $this->data ); -
/** * Filters array taxonomies search data */ apply_filters( 'mpsfw_tax_search_data', $data, $taxonomy ); -
/** * Filter array of relevance sql queries */ apply_filters( 'mpsfw_tax_search_relevance_array', $relevance_array, $this->taxonomy, $this->search_terms, $this->data ); -
/** * Exclude certain terms from search ( deprecated ) */ apply_filters( "mpsfw_terms_exclude_{$taxonomy_name}", array() ); -
/** * Filter terms search query */ apply_filters( 'mpsfw_terms_search_query', $sql, $this->taxonomy, $search_query ); -
do_action( 'mpsfw_cache_clear' ); -
apply_filters( 'mpsfw_posts_per_page', $query->get( 'posts_per_page' ) ); -
apply_filters( 'mpsfw_search_terms_description', false ); -
apply_filters( 'the_content', $content, $data['id'] ); -
apply_filters( 'wpml_current_language', NULL ); -
apply_filters( 'mpsfw_admin_settings_tabs', array() ); -
do_action( 'mpsfw_create_cache_table' ); -
do_action( 'mpsfw_create_index_table' ); -
apply_filters( 'mpsfw_current_scrapping_lang', 'en' ); -
apply_filters( 'mpsfw_current_search_data', array() ); -
apply_filters( 'mpsfw_excerpt_search_result', $excerpt, $post_id, $product ); -
do_action( 'mpsfw_get_extended_settings_tabs_content', $active_tab ); -
do_action( 'mpsfw_index_complete', $index_meta ); -
apply_filters( 'mpsfw_index_meta', $index_meta ); -
apply_filters( 'mpsfw_index_posts_per_page', 5 ); -
do_action( 'mpsfw_index_started', $index_meta ); -
apply_filters( 'mpsfw_page_results', 100 ); -
apply_filters( 'mpsfw_plurals_singular_rules', static::$_singular, $lang ); -
apply_filters( 'mpsfw_search_custom_results_data', $results_data, $results, $s_data ); -
apply_filters( 'mpsfw_search_custom_top_results', $custom_top_results, $results, $s_data ); -
apply_filters( 'mpsfw_search_notices', $notices, $results, $s_data ); -
apply_filters( 'mpsfw_search_results_categories', $result_array, $this->search_string ); -
apply_filters( 'mpsfw_search_results_tags', $result_array, $this->search_string ); -
apply_filters( 'mpsfw_search_top_text', '', $results, $s_data ); -
apply_filters( 'mpsfw_searchbox_markup', $markup, $params ); -
apply_filters( 'mpsfw_searchpage_enabled', $enabled, $query ); -
apply_filters( 'mpsfw_special_chars', $chars ); -
apply_filters( 'mpsfw_title_search_result', $title, $post_id, $product ); -
apply_filters( 'mpsfw_translate_dynamic_content', $translated_value, $name, $value ); -
apply_filters( 'widget_title', $title, $instance, $this->id_base ); -
apply_filters( 'wpml_element_has_translations', NULL, $data['id'], 'post_product' ); -
apply_filters( 'wpml_get_element_translations', NULL, $data['id'], 'post_product' ); -
apply_filters( 'wpml_post_language_details', NULL, $this->id ); -
do_action( 'wpml_switch_language', $this->lang );
Generated from Ajax Product Search for WooCommerce (ProSearch)'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: