wpseek.com
WordPress开发者和主题制作者的搜索引擎



edit_posts_per_page › WordPress过滤钩子

Since2.8.0
已弃用n/a
apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type )
参数: (2)
  • (int) $posts_per_page Number of posts to be displayed. Default 20.
    Required: Yes
  • (string) $post_type The post type.
    Required: Yes
定义在:
文档:

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





源码

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