WordPress函数文档comment_author()

显示当前评论的作者/用户信息 描述 Displays the comment author name; tha…

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

描述

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.

用法

 <?php comment_author$comment_ID ); ?> 

参数

comment_ID

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

默认值: 0 (the current comment)

相关

Comments Function(函数)s

  • Function(函数): cancel_comment_reply_link()
  • Function(函数): comment_author()
  • Function(函数): comment_author_email()
  • Function(函数): comment_author_email_link()
  • Function(函数): comment_author_IP()
  • Function(函数): comment_author_link()
  • Function(函数): comment_author_rss()
  • Function(函数): comment_author_url()
  • Function(函数): comment_author_url_link()
  • Function(函数): comment_class()
  • Function(函数): comment_date()
  • Function(函数): comment_excerpt()
  • Function(函数): comment_form_title()
  • Function(函数): comment_form(),
  • Function(函数): comment_ID()
  • Function(函数): comment_id_fields()
  • Function(函数): comment_reply_link()
  • Function(函数): comment_text()
  • Function(函数): comment_text_rss()
  • Function(函数): comment_time()
  • Function(函数): comment_type()
  • Function(函数): comments_link
  • Function(函数): comments_number()
  • Function(函数): comments_open(),
  • Function(函数): comments_popup_link()
  • Function(函数): comments_popup_script()
  • Function(函数): comments_rss_link()
  • Function(函数): get_avatar()
  • Function(函数): next_comments_link()
  • Function(函数): paginate_comments_links()
  • Function(函数): permalink_comments_rss()
  • Function(函数): previous_comments_link()
  • Function(函数): wp_list_comments()
  • 原文:http://codex.wordpress.org/Function_Reference/comment_author
类别:WordPress函数文档

本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

评论 (0)COMMENT