searchwp\indexer\alternate
4.0.0以降
SearchWPが代替インデクサーを必要とする場合に自動的に検出しますが、このフックはその検出を上書きします。
関連項目:代替インデクサー
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| ブール値 | $enabled |
false |
4.0.0 |
例
All hooks should be added to your custom SearchWP Customizations Plugin.
代替インデクサーを強制的に有効にする
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' ); |

