1. 首页
  2. WordPress钩子手册

comments_per_page

apply_filters( ‘comments_per_page’, int $comments_per_page, string $comment_status )

筛选挂钩:筛选“批注”列表表中每页列出的批注数。
Filter Hook: Filters the number of comments listed per page in the comments list table.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$comments_per_page (int) 每页要列出的评论数。
$comment_status (string) 注释状态名称。默认为“全部”。

源码(Source)


更新版本 源码位置 使用 被使用
2.6.0 wp-admin/includes/class-wp-comments-list-table.php:192 2 0

comments_per_page 为WP2原创文章,链接:https://www.wp2.cn/hook/comments_per_page/