Displays the HTML email link to the author of the current comment.
Description
Care should be taken to protect the email address and assure that email harvesters do not capture your commenter's email address. Most assume that their email address will not appear in raw form on the site. Doing so will enable anyone, including those that people don't want to get the email address and use it for their own means good and bad.
Parameters
$link_textstringoptional
Text to display instead of the comment author's email address. Default empty.Default: ''
$beforestringoptional
Text or HTML to display before the email link. Default empty.Default: ''
$afterstringoptional
Text or HTML to display after the email link. Default empty.Default: ''
$commentint|WP_Commentoptional
Comment ID or WP_Comment object. Default is the current comment.Default: null
Signature, return type and hooks compared across 5 parsed releases.
4.6.0
Added the $comment parameter.from the docblock
0.71
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/comment-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.