edit_posts_per_page WordPress Filter Hook
The edit_posts_per_page hook allows you to modify the number of posts per page that are shown on the edit screen. This can be useful if you want to show more or fewer posts per page.
apply_filters( 'edit_posts_per_page', int $posts_per_page , string $post_type ) #
Filters the number of posts displayed per page when specifically listing “posts”.
Parameters
- $posts_per_page
(int)Number of posts to be displayed. Default 20.
- $post_type
(string)The post type.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |