This Documentation is for SearchWP Version 3

Available since: 2.6.2


View Parameters »

SearchWP’s keyword stemming feature requires that the site locale be supported. The searchwp_locale_override hook allows you to override this behavior.

You can override your site’s locale by adding something like this to your theme’s functions.php:

// Override locale as far as SearchWP is concerned
add_filter( 'searchwp_locale_override', function( $locale ) {
return 'en_US';
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$locale String

The actual site locale