This Documentation is for SearchWP Version 3

Available since: 3.0


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:

// Increase the number of SearchWP stopword suggestions.
add_filter( 'searchwp_stopwords_suggestions_limit', function( $limit ) {
return 30;
} )'
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$limit Integer

Number of suggestions to retrieve