Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 15, 2016 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/a69ad7ccf4d77495e80a to your computer and use it in GitHub Desktop.
Save jchristopher/a69ad7ccf4d77495e80a to your computer and use it in GitHub Desktop.
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
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