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
array -
Used to build wp_mail() .
to
stringThe email address of the recipient.subject
stringThe subject of the email.message
stringThe content of the email.headers
stringHeaders.
-
$site
WP_Site -
Site object of the new site.
-
$user
WP_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 );
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |