comment_author_email_link()

最后更新于:2021-11-25 20:49:28

comment_author_email_link( string$linktext=”, string$before=”, string$after=”, int|GC_Comment$comment=null)

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

参数

$linktext

(string) (Optional) Text to display instead of the comment author’s email address.

Default value: ”

$before

(string) (Optional) Text or HTML to display before the email link.

Default value: ”

$after

(string) (Optional) Text or HTML to display after the email link.

Default value: ”

$comment

(int|GC_Comment) (Optional) Comment ID or GC_Comment object. Default is the current comment.

Default value: null

源文件

文件: gc-includes/comment-template.php

function comment_author_email_link( $linktext = '', $before = '', $after = '', $comment = null ) {
	$link = get_comment_author_email_link( $linktext, $before, $after, $comment );
	if ( $link ) {
		echo $link;
	}
}