过滤查询的已找帖子数。
原型
apply_filters_ref_array( 'found_posts', int $found_posts, WP_Query $this )
参数
$found_posts
(int)
找到的帖子数量。
$this
(WP_Query)
WP_Query实例(通过引用传递)。
源文件
路径:wp-includes/class-wp-query.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/found_posts/