searchwp\query\tokens\use_stems
Da: 4.0.0
Indice
Controlla se vengono utilizzati gli steli delle parole chiave dei token per una query.
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| Booleano | $enabled |
Stato della casella di controllo per le impostazioni del motore | 4.0.0 |
| \SearchWP\Query | $query |
La Query in esecuzione | 4.0.0 |
Esempi
All hooks should be added to your custom SearchWP Customizations Plugin.
Disabilita lo stemming delle parole chiave per tutti i motori
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 keyword stemming for all Engines in SearchWP. | |
| add_filter( 'searchwp\query\tokens\use_stems', '__return_false' ); |

