searchwp\tokens\regex_patterns\only_full_matches
Da: 4.0.0
Indice
Per impostazione predefinita, SearchWP elaborerà solo le corrispondenze complete per i suoi pattern di espressioni regolari. Se desideri che SearchWP consideri anche le corrispondenze parziali, puoi abilitare tale comportamento con questo hook.
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| Booleano | $enabled |
vero |
4.0.0 |
Esempi
All hooks should be added to your custom SearchWP Customizations Plugin.
Consenti la corrispondenza di corrispondenze parziali del modello regex
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 | |
| // Allow partial regex pattern matches to be considered in SearchWP. | |
| add_filter( 'searchwp\tokens\regex_patterns\only_full_matches', '__return_false' ); |

