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

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


Description

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

Possible hook names include:

  • edit_post_per_page
  • edit_page_per_page
  • edit_attachment_per_page

Top ↑

Parameters

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

Top ↑

Source

File: wp-admin/includes/post.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes

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