comment_time()
comment_time( string $format = ” )
显示当前批注的批注时间。
Displays the comment time of the current comment.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$format | (string) | 可选 | 时间的格式。默认用户设置。 |
返回(Return)
无返回值
源码(Source)
/** * Display the comment time of the current comment. * * @since 0.71 * * @param string $d Optional. The format of the time. Default user's settings. */ function comment_time( $d = '' ) { echo get_comment_time($d); }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
0.71 | wp-includes/comment-template.php:1067 | 1 function | 1 function |
笔记(Notes)
基本示例
comment_time() 为WP2原创文章,链接:https://www.wp2.cn/functions/comment_time/