Filter hook 'send_new_site_email'

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

Description

Filters whether to send an email to the Multisite network administrator when a new site is created. Return false to disable sending the email.

Occurrences

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

Parameters

Type Name Description
bool $send Whether to send the email.
WP_Site $site Site object of the new site.
WP_User $user User object of the administrator of the new site.

PHP Doc

/**
	 * Filters whether to send an email to the Multisite network administrator when a new site is created.
	 *
	 * Return false to disable sending the email.
	 *
	 * @since 5.6.0
	 *
	 * @param bool    $send Whether to send the email.
	 * @param WP_Site $site Site object of the new site.
	 * @param WP_User $user User object of the administrator of the new site.
	 */