SearchWP

This Documentation is for SearchWP Version 3

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:

<?php
// 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

Parameters

Parameter Type Description
$limit Integer

Number of suggestions to retrieve

[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]