searchwp\query\partial_matches\minimum_length
Seit: 4.0.0
Steuern Sie die Mindestlänge für Teilübereinstimmungen.
Parameter
| Typ | Parameter | Standard | Seit | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ganzzahl | $length |
3 (searchwp\tokens\minimum_length wird vor diesem Hook angewendet) |
4.0.0 |
|||||||||
| Array |
$args
|
4.0.0 |
||||||||||
Beispiele
All hooks should be added to your custom SearchWP Customizations Plugin.
Passen Sie die Mindestlänge von Teilübereinstimmungstoken an
Passen Sie die Mindestlänge von Teilübereinstimmungstoken an
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 partial match tokens in SearchWP. | |
| add_filter( 'searchwp\query\partial_matches\minimum_length', function( $length, $args ) { | |
| return 5; | |
| }, 20, 2 ); |

