WordPress函数文档comment_date()
显示当前评论的信息 描述 Displays the date a comment was posted. Us…
显示当前评论的信息
描述
Displays the date a comment was posted.
Use get_comment_date() to retrieve the value.
用法
<?php comment_date( $d, $comment_ID ); ?>
参数
$d
(string) (可选) Formatting for the date.
默认值: The date format set in WordPress. See Formatting Date and Time.
$comment_ID
(integer) (可选) The ID of the comment for which to print the date.
默认值: 0 (the current comment)
返回值
None. Echoes the return of get_comment_date()
源文件
comment_date() 函数的代码位于 wp-includes/comment-template.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ———————————-
* wordpress函数 kim收集
* ———————————- */
/**
* Display the comment date of the current comment.
*
* @since 0.71
*
* @param string $d Optional. The format of the date. Default user’s settings.
* @param int $comment_ID ID of the comment for which to print the date. Default current comment.
*/
function comment_date( $d = ”, $comment_ID = 0 ) {
echo get_comment_date( $d, $comment_ID );
}
|
相关
Formatting_Date_and_Time
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_date
类别:WordPress函数文档、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。
评论功能已经关闭!