On this page
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_emailarray-
Used to build wp_mail() .
tostringThe email address of the recipient.subjectstringThe subject of the email.messagestringThe content of the email.headersstringHeaders.
$siteWP_Site-
Site object of the new site.
$userWP_User-
User object of the administrator of the new site.
Source
File: wp-includes/ms-functions.php. View all references
$new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );
Related
Used By
| Used By | Description |
|---|---|
| wpmu_new_site_admin_notification() wp-includes/ms-functions.php | Notifies the Multisite network administrator that a new site was created. |
Changelog
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/new_site_email