pre_get_networks WordPress Action Hook
The pre_get_networks hook is a hook that is called before the networks are retrieved. It can be used to modify the query that is used to retrieve the networks.
do_action_ref_array( 'pre_get_networks', WP_Network_Query $query ) #
Fires before networks are retrieved.
Parameters
- $query
(WP_Network_Query)Current instance of WP_Network_Query (passed by reference).
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |