Filters the number of items per page to show for a specific 'per_page' type.
Description
The dynamic portion of the hook name, $post_type, refers to the post type. Possible hook names include: <ul> <li>edit_post_per_page</li> <li>edit_page_per_page</li> <li>edit_attachment_per_page</li> </ul>
Parameters
$posts_per_pageint
Number of posts to display per page for the given post type. Default 20.
1282*1283* @since 3.0.01284*1285* @param int$posts_per_page Number of posts to display per page for the given post1286* type.Default20.1287*/1288$posts_per_page=apply_filters("edit_{$post_type}_per_page",$posts_per_page);12891290/**1291* Filters the number of posts displayed per page when specifically listing "posts".1292*1293* @since 2.8.01294*
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.