WordPress at a glance
filter is not described

found_posts_query filter-hook . WP 2.1.0

Filters the query to run for retrieving the found posts.

Usage

add_filter( 'found_posts_query', 'filter_function_name_4025', 10, 2 );
function filter_function_name_4025( $found_posts_query, $this ){
	// filter...

	return $found_posts_query;
}
$found_posts_query(string)
The query to run to find the found posts.
$this(WP_Query)
The WP_Query instance (passed by reference).

Changelog

Since 2.1.0 Introduced.

Where the hook is called

WP_Query::set_found_posts()
found_posts_query
wp-includes/class-wp-query.php 3243
$found_posts_query = apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) );

Where in WP core the hook is used WordPress

Usage not found.