Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Created March 15, 2022 15:08
Show Gist options
  • Save searchwpgists/70e2a138ae23e912c37dec890c6061e6 to your computer and use it in GitHub Desktop.
Save searchwpgists/70e2a138ae23e912c37dec890c6061e6 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