Created
February 14, 2019 16:03
-
-
Save jchristopher/e815a45efc840beab1776f07ab3d2903 to your computer and use it in GitHub Desktop.
Customize whether partial matching applies to a specific engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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