author_email filter-hookWP 1.2.0

Filters the comment author's email for display.

Usage

add_filter( 'author_email', 'wp_kama_author_email_filter', 10, 2 );

/**
 * Function for `author_email` filter-hook.
 * 
 * @param string $author_email The comment author's email address.
 * @param string $comment_ID   The comment ID as a numeric string.
 *
 * @return string
 */
function wp_kama_author_email_filter( $author_email, $comment_ID ){

	// filter...
	return $author_email;
}
$author_email(string)
The comment author's email address.
$comment_ID(string)
The comment ID as a numeric string.

Changelog

Since 1.2.0 Introduced.
Since 4.1.0 The $comment_ID parameter was added.

Where the hook is called

comment_author_email()
author_email
wp-includes/comment-template.php 131
echo apply_filters( 'author_email', $author_email, $comment->comment_ID );

Where the hook is used in WordPress

Usage not found.