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



comments_per_page › WordPress过滤钩子

Since2.6.0
已弃用n/a
apply_filters( 'comments_per_page', $comments_per_page, $comment_status )
参数: (2)
  • (int) $comments_per_page The number of comments to list per page.
    Required: Yes
  • (string) $comment_status The comment status name. Default 'All'.
    Required: Yes
定义在:
文档:

Filters the number of comments listed per page in the comments list table.





源码

return apply_filters( 'comments_per_page', $comments_per_page, $comment_status );