Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created September 17, 2018 16:22
Embed
What would you like to do?
Change the minimum character count for SearchWP LIKE Terms
<?php
// 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' );
@thejulle
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