-
-
Save searchwpgists/63f5b09a4389767941c6edc3be2c8c72 to your computer and use it in GitHub Desktop.
Force SearchWP to use AND logic and not fall back to OR logic
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 SearchWP to use AND logic and not fall back to OR logic. | |
add_filter( 'searchwp\query\logic\and\strict', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment