WordPress开发者和主题制作者的搜索引擎



comments_number ›

Since1.5.0
已弃用n/a
apply_filters( 'comments_number', $output, $number )
参数: (2)
  • (string) $output A translatable string formatted based on whether the count is equal to 0, 1, or 1+.
    Required: Yes
  • (int) $number The number of post comments.
    Required: Yes
查看:
  • _n()
定义在:
文档:

Filters the comments count for display.





源码

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