get_comment_date

过滤钩子


apply_filters( 'get_comment_date', $date, $format, $comment )
参数
  • (string|int)
    $date
    Formatted date string or Unix timestamp.
    Required:
  • (string)
    $format
    PHP date format.
    Required:
  • (WP_Comment)
    $comment
    The comment object.
    Required:
定义位置
  • wp-includes/comment-template.php
    , line 569
引入
1.5.0
弃用

过滤返回的评论日期。

return apply_filters( 'get_comment_date', $date, $format, $comment );