Created
April 24, 2019 18:31
-
-
Save jchristopher/afc77819207c9f229c2646ee20684a22 to your computer and use it in GitHub Desktop.
Tell SearchWP to use keyword stems for partial matches
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 | |
// Tell SearchWP to use keyword stems for partial matches. | |
add_filter( 'searchwp_like_stem', function( $use_stem, $terms, $engine ) { | |
return true; | |
}, 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment