Created
August 7, 2019 12:59
-
-
Save jchristopher/ce281a043dce08b27a5f638c88e1376f to your computer and use it in GitHub Desktop.
Remove periods from search query in SearchWP
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 | |
// Remove periods from search query in SearchWP. | |
add_filter( 'searchwp_terms', function( $query, $engine ) { | |
return str_replace( '.', '', $query ); | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment