searchwp\indexer\alternate
Depuis : 4.0.0
Table des matières
Contrôlez si SearchWP utilise son indexeur alternatif. SearchWP détecte automatiquement quand l'indexeur alternatif est nécessaire, mais ce hook remplace cette détection.
Voir aussi : Indexeur alternatif
Paramètres
| Type | Paramètre | Défaut | Depuis |
|---|---|---|---|
| Booléen | $enabled |
faux |
4.0.0 |
Exemples
All hooks should be added to your custom SearchWP Customizations Plugin.
Forcer l'activation de l'indexeur alternatif
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 | |
| // Force enable SearchWP's alternate indexer. | |
| add_filter( 'searchwp\indexer\alternate', '__return_true' ); |

