searchwp\indexer\alternate
Desde: 4.0.0
Sumário
Controla se o SearchWP usa seu indexador alternativo. O SearchWP detecta automaticamente quando o indexador alternativo é necessário, mas este hook substitui essa detecção.
Veja também: Indexador Alternativo
Parâmetros
| Tipo | Parâmetro | Padrão | Desde |
|---|---|---|---|
| Booleano | $enabled |
falso |
4.0.0 |
Exemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Forçar a ativação do indexador 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' ); |

