do_action_deprecated( 'wpmu_new_blog', int $site_id, int $user_id, string $domain, string $path, int $network_id, array $meta )

This hook has been deprecated. Use ‘wp_insert_site’ instead.

Fires immediately after a new site is created.

Parameters

$site_id

(int) Site ID.

$user_id

(int) User ID.

$domain

(string) Site domain.

$path

(string) Site path.

$network_id

(int) Network ID. Only relevant on multi-network installations.

$meta

(array) Meta data. Used to set initial site options.

More Information

wpmu_new_blog is an action triggered whenever a new blog is created within a multisite network.

Source

File: wp-includes/ms-site.php

View on Trac

Changelog

Version Description
5.1.0 Use 'wp_insert_site' instead.
MU (3.0.0) Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wpmu_new_blog