apply_filters( 'send_new_site_email', bool $send, WP_Site $site, WP_User $user )

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

Description

Return false to disable sending the email.

Parameters

$send

(bool) Whether to send the email.

$site

(WP_Site) Site object of the new site.

$user

(WP_User) User object of the administrator of the new site.

Source

File: wp-includes/ms-functions.php

View on Trac

Changelog

Version Description
5.6.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/send_new_site_email