Make WordPress Core

Changeset 25414


Ignore:
Timestamp:
09/12/2013 08:48:20 PM (11 years ago)
Author:
nacin
Message:

Add populate_network_meta filter to populate_network().

props jeremyfelt.
fixes #25020.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r25413 r25414  
    923923        $sitemeta['illegal_names'][] = 'blog';
    924924
     925    /**
     926     * Filter meta for a network on creation.
     927     *
     928     * @since 3.7.0
     929     *
     930     * @param array $sitemeta Associative of meta keys and values to be inserted.
     931     * @param int $network_id Network ID being created.
     932     */
     933    $sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id );
     934
    925935    $insert = '';
    926936    foreach ( $sitemeta as $meta_key => $meta_value ) {
Note: See TracChangeset for help on using the changeset viewer.