Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

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

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

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