1. 首页
  2. WordPress钩子手册

found_posts

apply_filters_ref_array( ‘found_posts’, int $found_posts, WP_Query $this )

过滤器::筛选查询找到的帖子数。
Filter Hook: Filters the number of found posts for the query.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$found_posts (int) 找到的帖子数。
$this (WP_Query) WP_查询实例(通过引用传递)。

源码(Source)


更新版本 源码位置 使用 被使用
2.1.0 wp-includes/class-wp-query.php:3257 1 0

found_posts 为WP2原创文章,链接:https://www.wp2.cn/hook/found_posts/