get_comment_author_email хук-фильтр . WP 1.5.0
Filters the comment author's returned email address.
Использование
add_filter( 'get_comment_author_email', 'filter_function_name_7655', 10, 3 ); function filter_function_name_7655( $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.
- $comment(WP_Comment)
- The comment object.
Список изменений
С версии 1.5.0 | Введена. |
С версии 4.1.0 | The $comment_ID and $comment parameters were added. |
Где вызывается хук
get_comment_author_email
wp-includes/comment-template.php 99
return apply_filters( 'get_comment_author_email', $comment->comment_author_email, $comment->comment_ID, $comment );