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



edit_{$post_type}_per_page › WordPress过滤钩子

Since3.0.0
已弃用n/a
apply_filters( "edit_{$post_type}_per_page", $posts_per_page )
参数:
  • (int) $posts_per_page Number of posts to display per page for the given post type. Default 20.
    Required: Yes
定义在:
文档:

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

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




源码

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