Created
March 27, 2020 13:01
-
-
Save jchristopher/d1603e2e4c76ecefb2f6f4c032b41504 to your computer and use it in GitHub Desktop.
Disable AND logic in SearchWP
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 | |
// Disable AND logic in SearchWP. | |
add_filter( | |
'searchwp\query\logic\and', | |
function( $enabled, $query ) { | |
return false; | |
}, | |
30, 2 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment