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.}
1794* @type string$message The content of the email.1795* @type string$headers Headers.1796*}1797* @param WP_Site$site Site object of the newsite.1798* @param WP_User$user User object of the administrator of the newsite.1799*/1800$new_site_email=apply_filters('new_site_email',$new_site_email,$site,$user);18011802wp_mail(1803$new_site_email['to'],1804wp_specialchars_decode($new_site_email['subject']),1805$new_site_email['message'],1806$new_site_email['headers']
History
Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.