Filter hook 'new_site_email'

in WP Core File wp-includes/ms-functions.php at line 1800

Description

Filters the content of the email sent to the Multisite network administrator when a new site is created. Content should be formatted for transmission via wp_mail(). }

Occurrences

Filename Line Number
wp-includes/ms-functions.php 1800

Parameters

Type Name Description
array $new_site_email { Used to build wp_mail().
WP_Site $site Site object of the new site.
WP_User $user User object of the administrator of the new site.

PHP Doc

/**
	 * Filters the content of the email sent to the Multisite network administrator when a new site is created.
	 *
	 * Content should be formatted for transmission via wp_mail().
	 *
	 * @since 5.6.0
	 *
	 * @param array $new_site_email {
	 *     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.
	 * }
	 * @param WP_Site $site         Site object of the new site.
	 * @param WP_User $user         User object of the administrator of the new site.
	 */