Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created August 7, 2019 12:59
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/ce281a043dce08b27a5f638c88e1376f to your computer and use it in GitHub Desktop.
Save jchristopher/ce281a043dce08b27a5f638c88e1376f to your computer and use it in GitHub Desktop.
Remove periods from search query in SearchWP
<?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