SearchWP

This Documentation is for SearchWP Version 3

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:

<?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.
});
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$args Array

Search query arguments