searchwp\query\partial_matches\fuzzy\minimum_length
Da: 4.0.0
Indice
Controlla la lunghezza minima per le corrispondenze fuzzy.
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| Intero | $length |
3 (searchwp\tokens\minimum_length viene applicato prima di questo hook) |
4.0.0 |
Esempi
Tutti gli hook dovrebbero essere aggiunti al tuo plugin personalizzato SearchWP Customizations Plugin.
Personalizza la lunghezza minima dei token di corrispondenza fuzzy
Personalizza la lunghezza minima dei token di corrispondenza fuzzy
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 | |
| // Customize the minimum length of fuzzy match tokens in SearchWP. | |
| add_filter( 'searchwp\query\partial_matches\fuzzy\minimum_length', function( $length ) { | |
| return 5; | |
| } ); |
