Add populate_network_meta filter to populate_network().
props jeremyfelt. fixes #25020. git-svn-id: https://develop.svn.wordpress.org/trunk@25414 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3631b81545
commit
8917f2b3bd
@ -922,6 +922,16 @@ We hope you enjoy your new site. Thanks!
|
||||
if ( ! $subdomain_install )
|
||||
$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 = '';
|
||||
foreach ( $sitemeta as $meta_key => $meta_value ) {
|
||||
if ( is_array( $meta_value ) )
|
||||
|
Loading…
Reference in New Issue
Block a user