populate_site_meta filter-hookWP 5.2.0

Filters meta for a site on creation.

Usage

add_filter( 'populate_site_meta', 'wp_kama_populate_site_meta_filter', 10, 2 );

/**
 * Function for `populate_site_meta` filter-hook.
 * 
 * @param array $meta    Associative array of site meta keys and values to be inserted.
 * @param int   $site_id ID of site to populate.
 *
 * @return array
 */
function wp_kama_populate_site_meta_filter( $meta, $site_id ){

	// filter...
	return $meta;
}
$meta(array)
Associative array of site meta keys and values to be inserted.
$site_id(int)
ID of site to populate.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

populate_site_meta()
populate_site_meta
wp-admin/includes/schema.php 1333
$site_meta = apply_filters( 'populate_site_meta', $meta, $site_id );

Where the hook is used in WordPress

Usage not found.