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

Available since: 1.0


Note: Use of this hook will require a manual reindex

By default, SearchWP only indexes (and includes searches for) words that are at least three characters long. You can modify that with this filter.

Example: To index and search for words with at least two characters, add the following to your active theme’s functions.php:

function my_searchwp_minimum_word_length() {
// index and search for words with at least two characters
return 2;
add_filter( 'searchwp_minimum_word_length', 'my_searchwp_minimum_word_length' );
view raw gistfile1.php hosted with ❤ by GitHub
Fix Search on Your Site. No Coding Required!

Now you can utilize all of the content that's gone unrecognized by native WordPress search instantly with SearchWP

Get SearchWP