Inference Works 0.3.10 has 11 actions and 14 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 Inference Works fires an action
add_action( 'infs_admin_enqueue', function( $tab ) {
// Your code runs here.
}, 10, 1 );
// Change a value Inference Works is about to use
add_filter( 'infs_admin_tabs', 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
-
/** * Enqueue assets of an extra tab. */ do_action( 'infs_admin_enqueue', $tab ); -
/** * Render an extra tab added with infs_admin_tabs. */ do_action( "infs_admin_tab_{$current}", $notice ); -
/** * Extra tabs of the Search screen, rendered by the infs_admin_tab_{slug} * action. "Pro" and "License" stay last. */ apply_filters( 'infs_admin_tabs', array() ); -
/** * Extra cache key part for code that changes results over time through * infs_search_results (e.g. scheduled rules). */ apply_filters( 'infs_cache_salt', '' ); -
/** * Replace the search engine, e.g. with a hosted semantic search. */ apply_filters( 'infs_engine', null, $context ); -
/** * Facets of the search overlay and the results page, in display order. */ apply_filters( 'infs_facets', $defaults ); -
/** * Fires at the top of the Insights tab, before the search statistics. */ do_action( 'infs_insights_tab', $notice ); -
/** * Fires after the plugin is set up (WooCommerce is active). */ do_action( 'infs_loaded' ); -
/** * Client identifier for the log rate limit. Only its salted hash is kept, for * one minute. Filter it to use a trusted proxy header. */ apply_filters( 'infs_log_client', $ip ); -
/** * Logged events allowed per client per minute. Raise it when every visitor * shares one IP (e.g. a proxy that does not forward it). */ apply_filters( 'infs_log_rate_limit', self::RATE_LIMIT ); -
/** * Fires after settings changed, for other page caches or a CDN purge. */ do_action( 'infs_purge_page_caches' ); -
/** * Fires after a search or a result click was logged. */ do_action( 'infs_query_logged', $normalized, (int) $results, (int) $product_id, (bool) $click_only ); -
/** * Most products shown on the results page. */ apply_filters( 'infs_results_page_max', self::MAX_RESULTS ); -
/** * Change the ranked results of a search, e.g. pin, boost or hide products, or * add a banner or a redirect. */ apply_filters( 'infs_search_results', $result, $query, $context ); -
/** * Whether to list searches with no results as ideas for synonyms. An extension * that shows its own suggestions can turn the list off. */ apply_filters( 'infs_synonym_ideas', true ); -
/** * Fires below the synonyms editor and its preview. */ do_action( 'infs_synonyms_tab', $notice ); -
/** * Fires when a search shows no results: on every /search request of the * overlay (also when the response comes from the cache, so it can fire several * times while a customer types) and on the results page. A neutral extension * point; the plugin adds nothing to it. */ do_action( 'infs_zero_results', (string) $query, (string) $context ); -
apply_filters( 'infs_brand_taxonomies', array( 'product_brand', 'pwb-brand', 'yith_product_brand' ) ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
apply_filters( 'inference_works_plugins', array() ); -
apply_filters( 'infs_field_weights', self::DEFAULT_WEIGHTS ); -
apply_filters( 'infs_is_indexable', $indexable, $product ); -
apply_filters( 'infs_product_index_fields', $fields, $product ); -
do_action( 'litespeed_purge_all' );
Generated from Inference Works'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: