显示当前评论的评论时间。
原型
comment_time( string $d = '' )
参数
$d
(string)
(Optional)
时间的格式。默认用户的设置。
源文件
路径:wp-includes/comment-template.php
<?php
...
function comment_time( $d = '' ) {
echo get_comment_time($d);
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/comment_time/