edit_posts_per_page

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$posts_per_page

Number of posts to be displayed. Default 20.

$post_type

The post type.

Source Source

File: wp-admin/includes/post.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply