Created
March 23, 2020 20:37
-
-
Save jchristopher/e464b98240533cc2741af78a6788426e 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