author_email
Filters the comment author's email for display.
Использование
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(строка)
- The comment author's email address.
- $comment_ID(строка)
- The comment ID as a numeric string.
Список изменений
С версии 1.2.0 | Введена. |
С версии 4.1.0 | The $comment_ID parameter was added. |
Где вызывается хук
author_email
wp-includes/comment-template.php 131
echo apply_filters( 'author_email', $author_email, $comment->comment_ID );