Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
get_comment_author() - 检索当前评论的作者 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / get_comment_author()

get_comment_author( int|WP_Comment $comment_ID )

检索当前评论的作者


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 3 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "650ae00d9c1fad3fccc0887ab9025dcf" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "8a120dc4a793b62501729a9a51316687" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

author 作者more...

comment 评论more...


描述

如果评论的 comment_author 字段为空,则假设为“匿名”人。


参数

$comment_ID

(int|WP_Comment) (可选) WP_Comment或要检索作者的评论 ID,默认当前评论。


返回

(string) 评论作者



源码

查看源码 官方文档


更新日志

版本描述
4.4.0增加了$comment_ID也接受WP_Comment对象的能力
1.5.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194