wordpress / latest / hooks / found_sites_query.html

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_query string
SQL query. Default 'SELECT FOUND_ROWS()'.
$site_query WP_Site_Query
The WP_Site_Query instance.

Source

File: wp-includes/class-wp-site-query.php. View all references

$found_sites_query = apply_filters( 'found_sites_query', 'SELECT FOUND_ROWS()', $this );

Used By

Used By Description

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