apply_filters( 'new_site_email', array $new_site_email, WP_Site $site, WP_User $user )

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


Description

Content should be formatted for transmission via wp_mail().


Parameters

$new_site_email

Used to build wp_mail().<br>

  • 'to'
    (string) The email address of the recipient.<br>
  • 'subject'
    (string) The subject of the email.<br>
  • 'message'
    (string) The content of the email.<br>
  • 'headers'
    (string) Headers.<br>

$site

Site object of the new site.

$user

User object of the administrator of the new site.


Source

File: wp-includes/ms-functions.php

View on GitHub



Changelog

Changelog
Version Description
5.6.0 Introduced.