Available since: 3.1
searchwp_allow_quoted_phrase_searchView 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:
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
|// Enables quoted search support in SearchWP.|
|add_filter( 'searchwp_allow_quoted_phrase_search', '__return_true' );|