-
-
Save searchwpgists/46ec8442741432ef518ad8006af41f89 to your computer and use it in GitHub Desktop.
Force partial matches in SearchWP even when matches are found using provided search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Force partial matches in SearchWP even when matches are found using provided search. | |
add_filter( 'searchwp\query\partial_matches\force', function( $force, $args ) { | |
return true; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment