Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Created March 25, 2022 17:22
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/936723d07abd71094779131201927a4d to your computer and use it in GitHub Desktop.
Save searchwpgists/936723d07abd71094779131201927a4d to your computer and use it in GitHub Desktop.
Enable regex pattern match tokenization in SearchWP
<?php
// Enable regex pattern match tokenization in SearchWP.
add_filter( 'searchwp\tokens\tokenize_pattern_matches', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment