edit_posts_per_page WordPress Filter Hook

The edit_posts_per_page hook allows you to modify the number of posts per page that are shown on the edit screen. This can be useful if you want to show more or fewer posts per page.

apply_filters( 'edit_posts_per_page', int $posts_per_page, string $post_type ) #

Filters the number of posts displayed per page when specifically listing “posts”.


Parameters

$posts_per_page

(int)Number of posts to be displayed. Default 20.

$post_type

(string)The post type.


Top ↑

Source

File: wp-admin/includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More