Skip to content

Instantly share code, notes, and snippets.

Created January 15, 2016 02:24
What would you like to do?
Override SearchWP's term accent removal
function my_searchwp_leinent_accent_result( $string, $original_string ) {
if ( 'mytést' == $original_string ) {
$string = 'mytest';
return $string;
add_filter( 'searchwp_leinent_accent_result', 'my_searchwp_leinent_accent_result', 10, 2 );
Copy link

Alysko commented Oct 21, 2016

Should me lenient, not leinent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment