Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active April 27, 2020 14: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 jchristopher/e6f8ce2b8d8761395c43f2c0f5cbe5f1 to your computer and use it in GitHub Desktop.
Save jchristopher/e6f8ce2b8d8761395c43f2c0f5cbe5f1 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