A WordPress-centric search engine for devs and theme authors



comment_email ›

Since4.1.0
Deprecatedn/a
apply_filters( 'comment_email', $comment->comment_author_email, $comment )
Parameters: (2)
  • (string) $comment_author_email The comment author's email address.
    Required: Yes
  • (WP_Comment) $comment The comment object.
    Required: Yes
Defined at:
Codex:

Filters the comment author's email for display.

Care should be taken to protect the email address and assure that email harvesters do not capture your commenter's email address.





Source

$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );