Available since: 2.7
searchwp_keyword_stem_locale
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'searchwp_keyword_stem_locale', '__return_true' ); |
See also searchwp_locale_override
Parameters
Parameter | Type | Description |
---|---|---|
$forced |
Boolean |
Force enable stemming for the current locale |
$locale |
String |
The current locale |