get_comment_time

过滤钩子
apply_filters( 'get_comment_time', $date, $format, $gmt, $translate, $comment )
参数
  • (string|int) $date The comment time, formatted as a date string or Unix timestamp.
    Required:
  • (string) $format PHP date format.
    Required:
  • (bool) $gmt Whether the GMT date is in use.
    Required:
  • (bool) $translate Whether the time is translated.
    Required:
  • (WP_Comment) $comment The comment object.
    Required:
定义位置
相关勾子
get_comment_textget_comment_typeget_comment_dateget_comment_idget_comment_link
相关方法
get_comment_timeget_comment_metaget_comment_dateget_comment_textget_comment_typeget_comment_id
引入
1.5.0
弃用
-

get_comment_time 函数返回评论的创建或最后修改的时间。它需要两个参数:一个时间的格式字符串和一个评论对象。它返回给定评论的指定格式的时间。

过滤返回的注释时间。

return apply_filters( 'get_comment_time', $date, $format, $gmt, $translate, $comment );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-14 10:36:29

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

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

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