Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Created March 15, 2022 15:06
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/f5c43f6bf46cdc23271e898d66477263 to your computer and use it in GitHub Desktop.
Save searchwpgists/f5c43f6bf46cdc23271e898d66477263 to your computer and use it in GitHub Desktop.
Tell SearchWP not to use a wildcard prefix when performing partial match logic
<?php
// Tell SearchWP not to use a wildcard prefix when performing partial match logic.
add_filter( 'searchwp\query\partial_matches\wildcard_after', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment