Documentation

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

Available since: 3.1

searchwp_allow_quoted_phrase_search

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:

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

 

Parameters

Parameter Type Description
$enabled Boolean

Defaults to false

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