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.}
1859* @type string$message The content of the email.1860* @type string$headers Headers.1861*}1862* @param WP_Site$site Site object of the newsite.1863* @param WP_User$user User object of the administrator of the newsite.1864*/1865$new_site_email=apply_filters('new_site_email',$new_site_email,$site,$user);18661867wp_mail(1868$new_site_email['to'],1869wp_specialchars_decode($new_site_email['subject']),1870$new_site_email['message'],1871$new_site_email['headers']
History
Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.