Filters the number of posts displayed per page when specifically listing “posts”.
Parameters
$posts_per_pageint- Number of posts to be displayed. Default 20.
$post_typestring- The post type.
Source
$posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.