SearchWP

This Documentation is for SearchWP Version 3

Available since: 2.6.2

searchwp_locale_override

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:

<?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

Parameters

Parameter Type Description
$locale String

The actual site locale

[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]