get_network WordPress Filter Hook
The get_network hook is used to retrieve the network object for a given network. This hook can be used in conjunction with the is_multisite() function to check if a given site is part of a multisite network. This hook can be useful for plugin and theme developers who need to make sure their code is compatible with multisite networks.
apply_filters( 'get_network', WP_Network $_network ) #
Fires after a network is retrieved.
Parameters
- $_network
(WP_Network)Network data.
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |