This Documentation is for SearchWP Version 3

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