wpseek.com
A WordPress-centric search engine for devs and theme authors



edit_posts_per_page › WordPress Filter Hooks

Since2.8.0
Deprecatedn/a
apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type )
Parameters: (2)
  • (int) $posts_per_page Number of posts to be displayed. Default 20.
    Required: Yes
  • (string) $post_type The post type.
    Required: Yes
Defined at:
Codex:

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





Source

$posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type );