Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Override SearchWP's term accent removal
<?php
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 );
@Alysko

This comment has been minimized.

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
You can’t perform that action at this time.