On this page
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_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
File: wp-includes/ms-site.php. View all references
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'
);
Related
Used By
| Used By | Description |
|---|---|
| wp_insert_site() wp-includes/ms-site.php | Inserts a new site into the database. |
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Use 'wp_initialize_site' instead. |
| MU (3.0.0) | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wpmu_new_blog