This Documentation is for SearchWP Version 3

Available since: 3.1


View Parameters »

By default SearchWP does not support “quoted phrase” searches that restrict results to exact matches of search terms wrapped in double quotes. This is because there are some caveats to quoted search support that should be understood prior to enabling the feature.

For more information please see Quoted (Phrase, Sentence) Search Support

Support for quoted phrase searches can be enabled either by ticking the checkbox on the Advanced tab of the SearchWP settings screen, or utilizing this hook like so:

// Enables quoted search support in SearchWP.
add_filter( 'searchwp_allow_quoted_phrase_search', '__return_true' );
view raw functions.php hosted with ❤ by GitHub



Parameter Type Description
$enabled Boolean

Defaults to false