Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created February 14, 2019 16:03
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/e815a45efc840beab1776f07ab3d2903 to your computer and use it in GitHub Desktop.
Save jchristopher/e815a45efc840beab1776f07ab3d2903 to your computer and use it in GitHub Desktop.
Customize whether partial matching applies to a specific engine
<?php
// Note that 'my_supplemental_engine' is the name of the engine
// This will prevent partial matching for the my_supplemental_engine engine
// but leave partial matching enabled (when the checkbox is ticked) for all others
add_filter( 'searchwp_partial_matching_my_supplemental_engine', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment