On this page
apply_filters_ref_array( 'the_sites', WP_Site[] $_sites, WP_Site_Query $query )
Filters the site query results.
Parameters
$_sitesWP_Site[]-
An array of WP_Site objects.
$queryWP_Site_Query-
Current instance of WP_Site_Query (passed by reference).
Source
File: wp-includes/class-wp-site-query.php. View all references
$_sites = apply_filters_ref_array( 'the_sites', array( $_sites, &$this ) );
Related
Used By
| Used By | Description |
|---|---|
| WP_Site_Query::get_sites() wp-includes/class-wp-site-query.php | Retrieves a list of sites matching the query vars. |
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_sites