populate_network_meta filter-hookWP 3.7.0

Filters meta for a network on creation.

Usage

add_filter( 'populate_network_meta', 'wp_kama_populate_network_meta_filter', 10, 2 );

/**
 * Function for `populate_network_meta` filter-hook.
 * 
 * @param array $sitemeta   Associative array of network meta keys and values to be inserted.
 * @param int   $network_id ID of network to populate.
 *
 * @return array
 */
function wp_kama_populate_network_meta_filter( $sitemeta, $network_id ){

	// filter...
	return $sitemeta;
}
$sitemeta(array)
Associative array of network meta keys and values to be inserted.
$network_id(int)
ID of network to populate.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

populate_network_meta()
populate_network_meta
wp-admin/includes/schema.php 1287
$sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id );

Where the hook is used in WordPress

Usage not found.