Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Created March 25, 2022 17:11
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/c29477b4d60f0716da987b97d69d2ce7 to your computer and use it in GitHub Desktop.
Save searchwpgists/c29477b4d60f0716da987b97d69d2ce7 to your computer and use it in GitHub Desktop.
Tell SearchWP to skip rule application for regex pattern matches
<?php
// Tell SearchWP to skip rule application for regex pattern matches.
add_filter( 'searchwp\tokens\apply_rules_to_pattern_matches', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment