Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Last active March 15, 2022 12:21
Show Gist options
  • Save searchwpgists/06598342792a9744bba3b1fa0628efd6 to your computer and use it in GitHub Desktop.
Save searchwpgists/06598342792a9744bba3b1fa0628efd6 to your computer and use it in GitHub Desktop.
Enable quoted search support in SearchWP
<?php
// Enable quoted search support in SearchWP.
add_filter( 'searchwp\query\logic\phrase', function( $enabled, $query ) {
return true;
}, 30, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment