Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Last active March 16, 2022 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save searchwpgists/a9ba82e0685f8cb7730c3eb96f6f9846 to your computer and use it in GitHub Desktop.
Save searchwpgists/a9ba82e0685f8cb7730c3eb96f6f9846 to your computer and use it in GitHub Desktop.
Disable SearchWP AND logic token threshold, allowing AND logic for all searches.
<?php
// Disable SearchWP AND logic token threshold, allowing AND logic for all searches.
// @link https://searchwp.com/documentation/hooks/searchwp-query-logic-and-token_threshold/
add_filter( 'searchwp\query\logic\and\token_threshold', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment