Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

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

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP