Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Created March 25, 2022 17:20
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 searchwpgists/a7cfe5207d645ded3ab2ad9b2400c0dd to your computer and use it in GitHub Desktop.
Save searchwpgists/a7cfe5207d645ded3ab2ad9b2400c0dd to your computer and use it in GitHub Desktop.
Allow partial regex pattern matches to be considered in SearchWP
<?php
// Allow partial regex pattern matches to be considered in SearchWP.
add_filter( 'searchwp\tokens\regex_patterns\only_full_matches', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment