edit_{$post_type}_per_page

Advertisement

Summery Summery

Filters the number of items per page to show for a specific ‘per_page’ type.

Syntax Syntax

apply_filters( "edit_{$post_type}_per_page", int $posts_per_page )

Description Description

The dynamic portion of the hook name, $post_type, refers to the post type.

Some examples of filter hooks generated here include: ‘edit_attachment_per_page’, ‘edit_post_per_page’, ‘edit_page_per_page’, etc.

Parameters Parameters

$posts_per_page

Number of posts to display per page for the given post type. Default 20.

Source Source

File: wp-admin/includes/post.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply