Customize SearchWP's lenient accent conversion to only utilize Greek letters
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 | |
function my_searchwp_leinent_accents_conversions() { | |
return array( | |
// Only convert Greek | |
'Ά' => 'Α', 'ά' => 'α', 'Έ' => 'Ε', 'έ' => 'ε', 'Ή' => 'Η', 'ή' => 'η', 'Ί' => 'Ι', 'ί' => 'ι', 'Ό' => 'Ο', 'ό' => 'ο', 'Ύ' => 'Υ', 'ύ' => 'υ', 'Ώ' => 'Ω', 'ώ' => 'ω', 'ϊ' => 'ι', 'ϋ' => 'υ', 'Ϊ' => 'ι', 'Ϋ' => 'Υ', | |
); | |
} | |
add_filter( 'searchwp_leinent_accents_conversions', 'my_searchwp_leinent_accents_conversions' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment