apply_filters( ‘edit_posts_per_page’, int $posts_per_page, string $post_type )

In this article

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

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.