Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

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:

<?php
add_filter( 'searchwp_lenient_accents_on_search', '__return_false' );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$apply Boolean

Whether lenient accents should apply to search strings

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP