edit_posts_per_page
apply_filters( ‘edit_posts_per_page’, int $posts_per_page , string $post_type )
过滤器::过滤每页显示的文章数,特别是列出“文章”时。
Filter Hook: Filters the number of posts displayed per page when specifically listing “posts”.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$posts_per_page | (int) | 要显示的帖子数。默认值20。 |
$post_type | (string) | 职位类型。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-admin/includes/post.php:1173 | 3 | 0 |
edit_posts_per_page 为WP2原创文章,链接:https://www.wp2.cn/hook/edit_posts_per_page/