comment_time()
comment_time( string $format = ” ) 显示当前批注的批注时间。Displays…
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)
基本示例
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!