SearchWP

This Documentation is for SearchWP Version 3

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:

<?php
add_filter( 'searchwp_include_comment_email', '__return_true' );
view raw gistfile1.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$index_comment_author_email Boolean

Whether the comment author email address should be indexed

[wpforms id="3080"]