searchwp\tokens\apply_rules_to_pattern_matches
Seit: 4.0.0
Steuern Sie, ob SearchWP seine Validierungsregeln (z. B. Mindestlänge) auf reguläre Ausdrucksmuster (Regex) anwendet.
Parameter
| Typ | Parameter | Standard | Seit |
|---|---|---|---|
| Boolean | $enabled |
wahr |
4.0.0 |
Beispiele
All hooks should be added to your custom SearchWP Customizations Plugin.
Teile SearchWP mit, die Regelanwendung für Regex-Pattern-Übereinstimmungen zu überspringen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Tell SearchWP to skip rule application for regex pattern matches. | |
| add_filter( 'searchwp\tokens\apply_rules_to_pattern_matches', '__return_false' ); |

