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.


Top ↑

Source

File: wp-includes/ms-network.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.