searchwp\query\partial_matches\fuzzy\minimum_length
Desde: 4.0.0
Sumário
Controle o comprimento mínimo para correspondências fuzzy.
Parâmetros
| Tipo | Parâmetro | Padrão | Desde |
|---|---|---|---|
| Inteiro | $length |
3 (searchwp\tokens\minimum_length é aplicado antes deste hook) |
4.0.0 |
Exemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Personalize o comprimento mínimo dos tokens de correspondência difusa
Personalize o comprimento mínimo dos tokens de correspondência difusa
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; | |
| } ); |

