Title: wpmu_new_blog
Published: April 25, 2014
Last modified: August 20, 2026

---

# do_action_deprecated( ‘wpmu_new_blog’, int $site_id, int $user_id, string $domain, string $path, int $network_id, array $meta )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#changelog)

This hook has been deprecated since 5.1.0. Use {@see ‘wp_initialize_site’} instead.

Fires immediately after a new site is created.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#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](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#more-information)󠁿

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

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#source)󠁿

    ```php
    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'
    );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ms-site.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/ms-site.php#L137)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-site.php#L137-L142)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_insert_site()](https://developer.wordpress.org/reference/functions/wp_insert_site/)`wp-includes/ms-site.php` |

Inserts a new site into the database.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wpmu_new_blog/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.1.0](https://developer.wordpress.org/reference/since/5.1.0/) | Deprecated. Use [‘wp_initialize_site’](https://developer.wordpress.org/reference/hooks/wp_initialize_site/) instead. | 
| [MU (3.0.0)](https://developer.wordpress.org/reference/since/mu.3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwpmu_new_blog%2F)
before being able to contribute a note or feedback.