populate_site_meta WordPress Filter Hook

if ( ! function_exists( 'populate_site_meta' ) ) { function populate_site_meta() { // Add site meta. } } add_action( 'populate_site_meta', 'populate_site_meta' );

apply_filters( 'populate_site_meta', array $meta, int $site_id ) #

Filters meta for a site on creation.


Parameters

$meta

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

$site_id

(int)ID of site to populate.


Top ↑

Source

File: wp-admin/includes/schema.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.2.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.