Available since: 3.0
searchwp_stopwords_suggestions_limit
View Parameters »SearchWP will scan your site index to find stopword suggestions e.g. words that appear consistently across your entire website. Adding some (or all) of these words to your stopwords can improve the overall relevance of search results found by SearchWP.
By default 20 stopword suggestions are returned, but you can use this hook to modify how many suggestions are made:
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 | |
// Increase the number of SearchWP stopword suggestions. | |
add_filter( 'searchwp_stopwords_suggestions_limit', function( $limit ) { | |
return 30; | |
} )' |
Parameters
Parameter | Type | Description |
---|---|---|
$limit |
Integer |
Number of suggestions to retrieve |