On this page
apply_filters( 'found_sites_query', string $found_sites_query, WP_Site_Query $site_query )
Filters the query used to retrieve found site count.
Parameters
$found_sites_querystring-
SQL query. Default 'SELECT FOUND_ROWS()'.
$site_queryWP_Site_Query-
The
WP_Site_Queryinstance.
Source
File: wp-includes/class-wp-site-query.php. View all references
$found_sites_query = apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()', $this );
Related
Used By
| Used By | Description |
|---|---|
| WP_Site_Query::set_found_sites() wp-includes/class-wp-site-query.php | Populates found_sites and max_num_pages properties for the current query if the limit clause was used. |
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/found_sites_query