WordPress常用函数-get_comment_author()教程
说明: 获取当前评论的作者,如果评论没有作者信息,则为[Anonymous],这个函数在WordPress循环中使用.
用法: <?php $author = get_comment_author( $comment_ID ); ?>
参数: $comment_ID (integer) (可选) 获得作者的评论ID编号,默认为空
返回值: (string) 评论的作者
查看更多关于WordPress常用函数-get_comment_author()教程 - WordPress的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did8789