get_comment_author_email хук-фильтрWP 1.5.0

Filters the comment author's returned email address.

Использование

add_filter( 'get_comment_author_email', 'wp_kama_get_comment_author_email_filter', 10, 3 );

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

	// filter...
	return $comment_author_email;
}
$comment_author_email(строка)
The comment author's email address.
$comment_ID(строка)
The comment ID as a numeric string.
$comment(WP_Comment)
The comment object.

Список изменений

С версии 1.5.0 Введена.
С версии 4.1.0 The $comment_ID and $comment parameters were added.

Где вызывается хук

get_comment_author_email()
get_comment_author_email
wp-includes/comment-template.php 100
return apply_filters( 'get_comment_author_email', $comment->comment_author_email, $comment->comment_ID, $comment );

Где используется хук в WordPress

Использование не найдено.