Add populate_network_meta filter to populate_network().

props jeremyfelt.
fixes #25020.

Built from https://develop.svn.wordpress.org/trunk@25414


git-svn-id: http://core.svn.wordpress.org/trunk@25340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-09-12 20:49:09 +00:00
parent 717ec20ac7
commit e6bf2a293f

View File

@ -922,6 +922,16 @@ We hope you enjoy your new site. Thanks!
if ( ! $subdomain_install ) if ( ! $subdomain_install )
$sitemeta['illegal_names'][] = 'blog'; $sitemeta['illegal_names'][] = 'blog';
/**
* Filter meta for a network on creation.
*
* @since 3.7.0
*
* @param array $sitemeta Associative of meta keys and values to be inserted.
* @param int $network_id Network ID being created.
*/
$sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id );
$insert = ''; $insert = '';
foreach ( $sitemeta as $meta_key => $meta_value ) { foreach ( $sitemeta as $meta_key => $meta_value ) {
if ( is_array( $meta_value ) ) if ( is_array( $meta_value ) )