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



found_posts_query ›

Since2.1.0
已弃用n/a
apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()
参数: (2)
  • (string) $found_posts The query to run to find the found posts.
    Required: Yes
  • (WP_Query) $this The WP_Query instance (passed by reference).
    Required: Yes
定义在:
文档:

Filters the query to run for retrieving the found posts.





源码

$this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) );