A WordPress-centric search engine for devs and theme authors



found_posts_query ›

Since2.1.0
Deprecatedn/a
apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()
Parameters: (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
Defined at:
Codex:

Filters the query to run for retrieving the found posts.





Source

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