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:
定义位置
  • wp-includes/comment-template.php
    , line 1060
引入
1.5.0
弃用

Filters the returned comment time.

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