searchwp\indexer\alternate
Da: 4.0.0
Indice
Controlla se SearchWP utilizza il suo indicizzatore alternativo. SearchWP rileva automaticamente quando l'indicizzatore alternativo è necessario, ma questo hook sovrascrive tale rilevamento.
Vedi anche: Indicizzatore Alternativo
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| Booleano | $enabled |
false |
4.0.0 |
Esempi
All hooks should be added to your custom SearchWP Customizations Plugin.
Forza l'abilitazione dell'indicizzatore alternativo
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' ); |

