comment_time

函数
comment_time ( $format = '' )
参数
  • (string) $format Optional. PHP time format. Defaults to the 'time_format' option.
    Required:
    Default: (empty)
定义位置
相关方法
get_comment_timecomment_typecomment_datecomment_textcomment_id
引入
0.71
弃用
-

comment_time是WordPress的一个函数,用来显示一个评论发布的时间。它需要一个参数,即显示时间的格式。默认的格式是’g:i a’,它以12小时的格式显示时间(例如,下午2:30)。

显示当前评论的评论时间。

function comment_time( $format = '' ) {
	echo get_comment_time( $format );
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 17:36:36

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: