Available since: 3.0.4
searchwp_lenient_accents_on_search
View Parameters »By default, when setting searchwp_lenient_accents
to return true
SearchWP will also apply lenient accent rules to search queries as well. If you’d like to prevent that from happening you can use this hook:
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_lenient_accents_on_search', '__return_false' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$apply |
Boolean |
Whether lenient accents should apply to search strings |