comments_number

过滤钩子


apply_filters( 'comments_number', $output, $number )
参数
  • (string)
    $output
    A translatable string formatted based on whether the count
    is equal to 0, 1, or 1+.
    Required:
  • (int)
    $number
    The number of post comments.
    Required:
定义位置
  • wp-includes/comment-template.php
    , line 949
引入
1.5.0
弃用

Filters the comments count for display.

return apply_filters( 'comments_number', $output, $number );