Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 24, 2020 16:04
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 jchristopher/0f4d5c7f91b47bbdf240a96eb672df4d to your computer and use it in GitHub Desktop.
Save jchristopher/0f4d5c7f91b47bbdf240a96eb672df4d to your computer and use it in GitHub Desktop.
Tell SearchWP to use a wildcard prefix when performing partial match logic
<?php
// Tell SearchWP to use a wildcard prefix when performing partial match logic.
add_filter( 'searchwp\query\partial_matches\wildcard_before', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment