Available since: 3.1
searchwp_revised_search_query
View Parameters »This action is fired each time SearchWP has found a search correction (e.g. for Automatic “Did you mean” search query corrections) allowing you to integrate your own custom handling of search corrections as opposed to SearchWP’s automatic notice output (see also searchwp_auto_output_revised_search_query
).
The action can be utilized like so:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Output a custom notice when SearchWP finds a search correction. | |
add_action( 'searchwp_revised_search_query', function( $args ) { | |
// TODO: Output a notice indicating a search correction has been made. | |
}); |
Parameters
Parameter | Type | Description |
---|---|---|
$args |
Array |
Search query arguments |