searchwp\source\post\attributes\comments\author
4.0.0以降
コメントがWP_Postベースのソースに追加された場合、コメント作成者がインデックスに登録されるかどうかを制御します。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ブール値 | $enabled |
false |
4.0.0 |
||||||
| 配列 |
$args
|
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 | |
| // Enble Comment Author indexing in SearchWP. | |
| add_filter( 'searchwp\source\post\attributes\comments\author', function( $enabled, $args ) { | |
| return true; | |
| }, 10, 2 ); |

