Available since: 3.0
searchwp_exclude_stopwords
View Parameters »Note: Use of this hook will require a manual reindex
SearchWP makes use of stopwords to improve performance and relevance. If you would like to tell SearchWP to not use stopwords in any way (even when stopwords have been set up) you can use this hook:
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
<?php | |
// Prevent SearchWP from using stopwords. | |
add_filter( 'searchwp_exclude_stopwords', '__return_false' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$exclude_stopwords |
Boolean |
Whether stopwords should be excluded |