Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created April 26, 2019 14:41
Embed
What would you like to do?
Control the threshold SearchWP uses when suggesting stopwords
<?php
// Tell SearchWP to suggest stopwords only if they appear in 50% of entries.
add_filter( 'searchwp_stopwords_suggestions_threshold', function( $threshold ) {
return 0.5;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment