WPDev.one
Core Function
View Source on Trac ↗

get_comment_author_email_link()

get_comment_author_email_link( mixed $link_text = '', mixed $before = '', mixed $after = '', mixed $comment = null )

Returns the HTML email link to the author of the current comment.

Parameters 2 required

Name / Type Description
string

$link_text Optional. Text to display instead of the comment author's email address. Default empty.

Required
$before
string

Optional. Text or HTML to display before the email link. Default empty.

$after
string

Optional. Text or HTML to display after the email link. Default empty.

(int

| WP_Comment) $comment Optional. Comment ID or WP_Comment object. Default is the current comment.

Required

Return Value

(string)
string HTML markup for the comment author email link. By default, the email address is obfuscated via the {@see 'comment_email'} filter with antispambot().

Function Information

Since Version
2.7.0
Source File
wp-includes/comment-template.php
Advertisement