-
-
Save searchwpgists/ba71489939e4da1e56473daa2bcc33a3 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