populate_network_meta WordPress Filter Hook

This hook is called when a new site is created in a multisite network. It allows for customizations to be made to the site before it is populated with content. This is useful for setting up default settings or configuration options that all new sites in the network should have.

apply_filters( 'populate_network_meta', array $sitemeta, int $network_id ) #

Filters meta for a network on creation.


Parameters

$sitemeta

(array)Associative array of network meta keys and values to be inserted.

$network_id

(int)ID of network to populate.


Top ↑

Source

File: wp-admin/includes/schema.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.