On this page
apply_filters( 'comments_per_page', int $comments_per_page, string $comment_status )
Filters the number of comments listed per page in the comments list table.
Parameters
$comments_per_pageint-
The number of comments to list per page.
$comment_statusstring-
The comment status name. Default
'All'.
Source
File: wp-admin/includes/class-wp-comments-list-table.php. View all references
return apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
Related
Used By
| Used By | Description |
|---|---|
| WP_Screen::render_per_page_options() wp-admin/includes/class-wp-screen.php | Renders the items per page option. |
| WP_Comments_List_Table::get_per_page() wp-admin/includes/class-wp-comments-list-table.php |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comments_per_page