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