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: 1.0.6

searchwp_max_search_terms_supplemental

View Parameters »

By default SearchWP considers the same maximum number of search terms for the default engine and all supplemental engines, but if you’d like to modify the maximum number of accepted search terms for all supplemental engines only, add something like the following to your theme’s functions.php:

<?php
function my_searchwp_max_search_terms_supplemental( $num_terms) {
return 10; // allow 10 search terms for supplemental engines
}
add_filter( 'searchwp_max_search_terms_supplemental', 'my_searchwp_max_search_terms_supplemental' );
view raw gistfile1.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$num_terms Integer

The number of terms to accept

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