StoreBolt 0.2.0 has 6 actions and 86 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 StoreBolt fires an action
add_action( 'maswcas_index_updated', function() {
// Your code runs here.
}, 10, 1 );
// Change a value StoreBolt is about to use
add_filter( 'maswcas_shared_cache_ttl', 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
-
/** * Fires after a product family is (re)indexed or removed. Cache and any other * freshness-sensitive listeners hang off this instead of knowing about the * backend's write methods. */ do_action( 'maswcas_index_updated' ); -
/** * The attribute taxonomies indexed for search text and facet pairs. */ apply_filters( 'maswcas_attribute_facet_taxonomies', $taxonomies ); -
/** * Last word on the vocabulary shipped to every shopper's browser. */ apply_filters( 'maswcas_completion_dictionary', $terms ); -
/** * How many attribute dimensions (Color, Size, …) the chip row offers. */ apply_filters( 'maswcas_facet_max_attributes', 3 ); -
/** * How many chips one dimension offers (each category list, each attribute's * values). A chip row is a refinement, not a directory — past a handful it * competes with the results it exists to narrow. */ apply_filters( 'maswcas_facet_max_terms', 5 ); -
/** * How many values the engine returns per facet — the raw pool the dropdown's * chip row is cut from, not the number of chips. */ apply_filters( 'maswcas_facet_max_values', 10 ); -
/** * How many price chips the row offers at most. */ apply_filters( 'maswcas_facet_price_buckets', 4 ); -
/** * Last-mile override of the hosted engine search params (e.g. to add synonyms * sets, pinning, or vector params from a future slice). */ apply_filters( 'maswcas_hosted_search_params', $params, $query ); -
/** * The cards about to render, for a store that curates what "popular" means. * Same shape in and out; an item without a `url` is dropped. */ apply_filters( 'maswcas_popular_products', $cards, $limit ); -
/** * Last word on the completions offered — curate, reorder, or empty. */ apply_filters( 'maswcas_query_completions', $out, $typed ); -
/** * Fires after MysqlBackend executes a search, with the exact SQL and measured * duration. The extension point for slow-query logging and benchmarking * tooling — since MysqlBackend is the one class allowed to know about SQL, * nothing engine-agnostic needs to know this hook exists, and a future backend * simply wouldn't fire it (or would fire an analogous one around its own API * call). */ do_action( 'maswcas_search_query_executed', array( 'sql' => $sql, 'duration' => $duration_ms, 'query' => $query, ) ); -
/** * Last word on what the sections offer — curate, reorder, or empty a group. * Rows are scalar maps: term_id, name, url, crumb, count. $category_id is * passed so a callback can tell a scoped request from an unscoped one and not * re-add what the suppression removed. */ apply_filters( 'maswcas_term_suggestions', array_filter( $groups ), $term, $category_id ); -
/** * This filter is documented in WooCommerce: * src/Internal/Orders/OrderAttributionController.php */ apply_filters( 'wc_order_attribution_allow_tracking', true ); -
wc_order_attribution_session_length_minutes
filter Used by 2 plugins → Copy link Customise this hook/** * This filter is documented in WooCommerce: * src/Internal/Orders/OrderAttributionController.php */ apply_filters( 'wc_order_attribution_session_length_minutes', self::DEFAULT_MINUTES ); -
do_action( 'maswcas_hosted_request', array( 'endpoint' => $op, 'code' => 0, 'error' => $e->getMessage(), ) ); -
apply_filters( 'maswcas_search_cache_ttl', 300 ); -
apply_filters( 'maswcas_analytics_retention_days', self::DEFAULT_RETENTION_DAYS ); -
apply_filters( 'maswcas_hosted_health_ttl', 60 ); -
apply_filters( 'maswcas_warm_cache_idle_interval', 15 * MINUTE_IN_SECONDS ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'litespeed_purge_all' ); -
apply_filters( 'maswcas_admin_product_search_max', 200 ); -
apply_filters( 'maswcas_analytics_max_terms_per_day', 5000 ); -
apply_filters( 'maswcas_analytics_rate_limit', self::RATE_LIMIT ); -
apply_filters( 'maswcas_analytics_revenue', true ); -
apply_filters( 'maswcas_analytics_ship_interval', self::DEFAULT_INTERVAL ); -
apply_filters( 'maswcas_attach_min_chars_floor', 3 ); -
apply_filters( 'maswcas_backfill_batch_size', 50 ); -
apply_filters( 'maswcas_backfill_guard_ttl', 15 * MINUTE_IN_SECONDS ); -
apply_filters( 'maswcas_brand_taxonomies', array( 'product_brand' ) ); -
apply_filters( 'maswcas_category_dropdown_args', array( 'taxonomy' => self::TAXONOMY, 'hide_empty' => true, 'orderby' => 'name', 'order' => 'ASC', ) ); -
apply_filters( 'maswcas_completion_dictionary_max', 250 ); -
apply_filters( 'maswcas_completion_dictionary_ttl', HOUR_IN_SECONDS ); -
apply_filters( 'maswcas_completions_unversioned_ttl', 300 ); -
apply_filters( 'maswcas_conversion_consent', true ); -
apply_filters( 'maswcas_debounce_ms', 250 ); -
apply_filters( 'maswcas_display_cache_context', $context ); -
apply_filters( 'maswcas_dropdown_brand_mark', true ); -
apply_filters( 'maswcas_dropdown_product_cap', 4 ); -
apply_filters( 'maswcas_enhance_theme_search', $default ); -
apply_filters( 'maswcas_facet_price_bucket_ttl', DAY_IN_SECONDS ); -
apply_filters( 'maswcas_highlight_terms', ( new Settings() )->highlight_terms() ); -
apply_filters( 'maswcas_hosted_collection', $this->settings->hosted_collection() ); -
apply_filters( 'maswcas_hosted_doc_count_ttl', 30 ); -
apply_filters( 'maswcas_hosted_fields_ttl', HOUR_IN_SECONDS ); -
apply_filters( 'maswcas_hosted_import_batch', 100 ); -
apply_filters( 'maswcas_hosted_num_typos', $this->settings->num_typos() ); -
apply_filters( 'maswcas_hosted_report_timeout', 8 ); -
apply_filters( 'maswcas_hosted_request_timeout', 2 ); -
apply_filters( 'maswcas_hosted_write_timeout', 15 ); -
apply_filters( 'maswcas_live_search_themes', self::LIVE_SEARCH_THEMES ); -
apply_filters( 'maswcas_min_chars', $settings->min_chars() ); -
apply_filters( 'maswcas_min_token_size', 3 ); -
do_action( 'maswcas_page_cache_purge' ); -
apply_filters( 'maswcas_popular_new_days', 30 ); -
apply_filters( 'maswcas_popular_products_args', self::query_args( $limit ) ); -
apply_filters( 'maswcas_popular_products_max', 8 ); -
apply_filters( 'maswcas_popular_products_ttl', HOUR_IN_SECONDS ); -
apply_filters( 'maswcas_query_completions_max', 5 ); -
apply_filters( 'maswcas_query_completions_min_searches', 2 ); -
apply_filters( 'maswcas_query_completions_window_days', self::WINDOW_DAYS ); -
apply_filters( 'maswcas_record_analytics', $this->settings->analytics() ); -
apply_filters( 'maswcas_reindex_batch_size', 50 ); -
apply_filters( 'maswcas_results_click_selector', self::DEFAULT_SELECTOR ); -
apply_filters( 'maswcas_results_page_max', 100 ); -
apply_filters( 'maswcas_search_cache_control', 'private, max-age=60' ); -
apply_filters( 'maswcas_search_form_action', home_url( '/' ) ); -
apply_filters( 'maswcas_search_history_max', 5 ); -
apply_filters( 'maswcas_search_rate_bucket', $ip ); -
apply_filters( 'maswcas_search_rate_limit', 60 ); -
apply_filters( 'maswcas_suggestion_layout', ( new Settings() )->suggestion_layout() ); -
apply_filters( 'maswcas_takeover_generic_search', false, $query ); -
apply_filters( 'maswcas_template_part_cache_ttl', 300 ); -
apply_filters( 'maswcas_term_suggestions_max', 3 ); -
apply_filters( 'maswcas_term_sweep_batch_size', 50 ); -
apply_filters( 'maswcas_theme_compat_handlers', self::HANDLERS ); -
apply_filters( 'maswcas_theme_compat_names', self::NAMES ); -
apply_filters( 'maswcas_theme_search_anchor', 'input' ); -
apply_filters( 'maswcas_trending_cache_ttl', HOUR_IN_SECONDS ); -
apply_filters( 'maswcas_trending_days', 7 ); -
apply_filters( 'maswcas_trending_max', 5 ); -
apply_filters( 'maswcas_trending_min_searches', 3 ); -
apply_filters( 'maswcas_vendor_api_timeout', 15 ); -
apply_filters( 'maswcas_warm_cache_grace', 5 ); -
apply_filters( 'maswcas_warm_cache_recheck', HOUR_IN_SECONDS ); -
apply_filters( 'maswcas_warm_cache_terms', 3 ); -
apply_filters( 'maswcas_warm_cache_timeout', 5 ); -
apply_filters( 'maswcas_warm_cache_urls', 12 ); -
apply_filters( 'maswcas_woodmart_search_form_overrides', $overrides ); -
apply_filters( 'widget_title', $title, $instance, $this->id_base );
Generated from StoreBolt'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: