the_sites WordPress Filter Hook
The the_sites hook is one of the most important hooks in WordPress. It allows you to add, remove, or modify any of the default sites that are displayed in the WordPress admin area. This hook is also used by many plugins and themes to add their own custom sites.
apply_filters_ref_array( 'the_sites', WP_Site[] $_sites , WP_Site_Query $query ) #
Filters the site query results.
Parameters
- $_sites
- $query
(WP_Site_Query)Current instance of WP_Site_Query (passed by reference).
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |