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

In this article

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

$sendbool
Whether to send the email.
$siteWP_Site
Site object of the new site.
$userWP_User
User object of the administrator of the new site.

Source

if ( ! apply_filters( 'send_new_site_email', true, $site, $user ) ) {

Changelog

VersionDescription
5.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.