Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Last active March 16, 2022 16:29
Show Gist options
  • Save searchwpgists/ba71489939e4da1e56473daa2bcc33a3 to your computer and use it in GitHub Desktop.
Save searchwpgists/ba71489939e4da1e56473daa2bcc33a3 to your computer and use it in GitHub Desktop.
Disable AND logic in SearchWP
<?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