comments_per_page

过滤钩子


apply_filters( 'comments_per_page', $comments_per_page, $comment_status )
参数
  • (int)
    $comments_per_page
    The number of comments to list per page.
    Required:
  • (string)
    $comment_status
    The comment status name. Default ‘All’.
    Required:
定义位置
  • wp-admin/includes/class-wp-comments-list-table.php
    , line 211
引入
2.6.0
弃用

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

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