searchwp\stopwords
Da: 4.0.0
Indice
SearchWP utilizza Stopwords per ottimizzare l'indice e aumentare la pertinenza dei risultati di ricerca.
Il metodo principale per personalizzare l'elenco delle Stopwords è tramite la scheda Impostazioni della schermata delle Impostazioni di SearchWP. È tuttavia possibile filtrare programmaticamente anche le Stopwords.
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| String[] | $stopwords |
Elenco localizzato di stopwords per la tua locale | 4.0.0 |
Esempi
All hooks should be added to your custom SearchWP Customizations Plugin.
Rimuovi tutte le Stopwords
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 | |
| // Remove all SearchWP Stopwords. | |
| add_filter( 'searchwp\stopwords', '__return_empty_array' ); |

