comment_author()显示当前评论的作者/用户信息

目录

描述

Displays the comment author name; that is, the one supplied by the commenter. If no name is provided (and "User must fill out name and email" is not enabled under Discussion Options), WordPress will assign "Anonymous" as comment author.

Use get_comment_author() to retrieve the value.

comment_author() 描述

用法

 <?php comment_author$comment_ID ); ?> 

comment_author() 用法

参数

comment_ID

(integer) (可选) The ID of the comment for which to print the author

默认值: 0 (the current comment)

comment_author() 参数

相关