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 {@see ‘wp_initialize_site’} instead.

Fires immediately after a new site is created.

Parameters

$site_idint
Site ID.
$user_idint
User ID.
$domainstring
Site domain.
$pathstring
Site path.
$network_idint
Network ID. Only relevant on multi-network installations.
$metaarray
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

do_action_deprecated(
	'wpmu_new_blog',
	array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ),
	'5.1.0',
	'wp_initialize_site'
);

Changelog

VersionDescription
5.1.0Use 'wp_initialize_site' instead.
MU (3.0.0)Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.