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(). @type string $to The email address of the recipient. @type string $subject The subject of the email. @type string $message The content of the email. @type string $headers Headers.}
1841* @type string$message The content of the email.1842* @type string$headers Headers.1843*}1844* @param WP_Site$site Site object of the newsite.1845* @param WP_User$user User object of the administrator of the newsite.1846*/1847$new_site_email=apply_filters('new_site_email',$new_site_email,$site,$user);18481849wp_mail(1850$new_site_email['to'],1851wp_specialchars_decode($new_site_email['subject']),1852$new_site_email['message'],1853$new_site_email['headers']
History
Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.