Filters the number of posts displayed per page when specifically listing "posts".
$posts_per_pageint$post_typestringwp-admin/includes/class-wp-posts-list-table.php:176WP_Posts_List_Table::prepare_items()wp-admin/includes/class-wp-screen.php:1272WP_Screen::render_per_page_options()wp-admin/includes/post.php:1302wp_edit_posts_query() * * @since 2.8.0 * * @param int $posts_per_page Number of posts to be displayed. Default 20. * @param string $post_type The post type. */ $posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type ); $query = compact( 'post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page' ); // Hierarchical types require special args. if ( is_post_type_hierarchical( $post_type ) && empty( $orderby ) ) { $query['orderby'] = 'menu_order title';Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.