searchwp\query\partial_matches\buoy
Depuis : 4.0.0
Table des matières
Contrôlez si les correspondances exactes reçoivent un poids de pertinence supplémentaire lors de l'application de la logique de correspondance partielle.
Paramètres
| Type | Paramètre | Défaut | Depuis | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Booléen | $enabled |
true |
4.0.0 |
|||||||||
| Tableau |
$args
|
4.0.0 |
||||||||||
Exemples
Tous les hooks doivent être ajoutés à votre plugin personnalisé SearchWP Customizations Plugin.
Désactiver la bouée de correspondance exacte
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 | |
| // Disable SearchWP's exact match buoy when performing partial match logic. | |
| add_filter( 'searchwp\query\partial_matches\buoy', '__return_false' ); |

