Title: new_site_email
Published: December 9, 2020
Last modified: April 28, 2025

---

# apply_filters( ‘new_site_email’, array $new_site_email, WP_Site $site, WP_User $user )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/new_site_email/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/new_site_email/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/new_site_email/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/new_site_email/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/new_site_email/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/new_site_email/?output_format=md#wp--skip-link--target)

Filters the content of the email sent to the Multisite network administrator when
a new site is created.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/new_site_email/?output_format=md#description)󠁿

Content should be formatted for transmission via [wp_mail()](https://developer.wordpress.org/reference/functions/wp_mail/).

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/new_site_email/?output_format=md#parameters)󠁿

 `$new_site_email`array

Used to build [wp_mail()](https://developer.wordpress.org/reference/functions/wp_mail/).

 * `to` string
 * The email address of the recipient.
 * `subject` string
 * The subject of the email.
 * `message` string
 * The content of the email.
 * `headers` string
 * Headers.

`$site`[WP_Site](https://developer.wordpress.org/reference/classes/wp_site/)

Site object of the new site.

`$user`[WP_User](https://developer.wordpress.org/reference/classes/wp_user/)

User object of the administrator of the new site.

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

    ```php
    $new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );
    ```

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

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

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

Notifies the Multisite network administrator that a new site was created.

  |

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

| Version | Description | 
| [5.6.0](https://developer.wordpress.org/reference/since/5.6.0/) | Introduced. |

## User Contributed Notes

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