Available since: 1.4
searchwp_include_comment_author
View Parameters »Note: Use of this hook will require a manual reindex
By default SearchWP does not include comment authors when indexing (and as a result when searching) but if you would like to have the comment author included when indexing each comment for a post you can use this hook by adding the following to your theme’s functions.php
:
<?php | |
add_filter( 'searchwp_include_comment_author', '__return_true' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$include_comment_author |
Boolean |
Whether the comment author should be indexed |