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


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

Available since: 2.7


View Parameters »

Note: Use of this hook will require a manual reindex

SearchWP by default only supports keyword stemming for English. SearchWP will check the locale of your WordPress install to determine whether stemming should be available. Any extension-based stemmers will enable this functionality as well.

If you would like to tell SearchWP to support keyword stemming for your locale, you can use this hook by adding something like the following to your theme’s functions.php:

add_filter( 'searchwp_keyword_stem_locale', '__return_true' );
view raw functions.php hosted with ❤ by GitHub

See also searchwp_locale_override


Parameter Type Description
$forced Boolean

Force enable stemming for the current locale

$locale String

The current locale

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