get_network filter-hookWP 4.6.0

Fires after a network is retrieved.

Usage

add_filter( 'get_network', 'wp_kama_get_network_filter' );

/**
 * Function for `get_network` filter-hook.
 * 
 * @param WP_Network $_network Network data.
 *
 * @return WP_Network
 */
function wp_kama_get_network_filter( $_network ){

	// filter...
	return $_network;
}
$_network(WP_Network)
Network data.

Changelog

Since 4.6.0 Introduced.

Where the hook is called

get_network()
get_network
wp-includes/ms-network.php 48
$_network = apply_filters( 'get_network', $_network );

Where the hook is used in WordPress

Usage not found.