pre_get_sites WordPress Action Hook
The pre_get_sites hook is used to filter the sites that are returned by the get_sites function. This hook is called before the get_sites function is executed.
do_action_ref_array( 'pre_get_sites', WP_Site_Query $query ) #
Fires before sites are retrieved.
Parameters
- $query
(WP_Site_Query)Current instance of WP_Site_Query (passed by reference).
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |