Skip to content

Instantly share code, notes, and snippets.

Created September 17, 2018 16:22
What would you like to do?
Change the minimum character count for SearchWP LIKE Terms
// Apply LIKE matching for terms 2 or more characters in length.
function searchwp_like_min_length( $length ) {
return 2;
add_filter( 'searchwp_like_min_length', 'my_searchwp_like_min_length' );
Copy link

Hi, the function names don't match. The function should be my_searchwp_like_min_length()

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