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.
Source
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |