Filters the number of items per page to show for a specific ‘per_page’ type.
The dynamic portion of the hook name, $post_type, refers to the post type.
Possible hook names include:
edit_post_per_pageedit_page_per_pageedit_attachment_per_page$posts_per_pageint
$posts_per_page = apply_filters( "edit_{$post_type}_per_page", $posts_per_page );
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/edit_post_type_per_page