Search Regex 3.5.1 has 0 actions and 15 filters, read directly from its source code on Nov 17, 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.
// Change a value Search Regex is about to use
add_filter( 'searchregex_text', function( $matches, $row_id, $row_value, $raw, $arg5 ) {
// Change $matches here.
return $matches;
}, 10, 5 );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
-
searchregex_text
filterapply_filters( 'searchregex_text', $matches[1], $row_id, $row_value, $raw, $source->get_schema_item() ); -
apply_filters( 'searchregex_autocomplete_results', $results ); -
searchregex_default_options
filterapply_filters( 'searchregex_default_options', $defaults ); -
searchregex_do_shortcode
filterapply_filters( 'searchregex_do_shortcode', '', $tag, $attrs, $content ); -
searchregex_load_options
filterapply_filters( 'searchregex_load_options', parent::load() ); -
searchregex_result_actions
filterapply_filters( 'searchregex_result_actions', $source->get_actions( $this ), $this->source_type, $this ); -
searchregex_save_options
filterapply_filters( 'searchregex_save_options', $settings ); -
searchregex_schema_item
filterapply_filters( 'searchregex_schema_item', $this->get_schema() ); -
searchregex_schema_source
filterapply_filters( 'searchregex_schema_source', $schema ); -
searchregex_shortcodes
filterapply_filters( 'searchregex_shortcodes', [ 'md5', 'upper', 'lower', 'dashes', 'underscores', 'column', 'value', 'date', ] ); -
searchregex_source_groups
filterapply_filters( 'searchregex_source_groups', $groups ); -
searchregex_sources_advanced
filterapply_filters( 'searchregex_sources_advanced', $sources ); -
searchregex_sources_core
filterapply_filters( 'searchregex_sources_core', $sources ); -
searchregex_sources_plugin
filterapply_filters( 'searchregex_sources_plugin', [] ); -
searchregex_sources_posttype
filterapply_filters( 'searchregex_sources_posttype', $post_sources );
Generated from Search Regex's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: