send_new_site_email WordPress Filter Hook

The send_new_site_email hook allows you to send an email to a new site owner when their site is created. This hook is useful for sending welcome messages or notifications about new sites.

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.


Top ↑

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.


Top ↑

Source

File: wp-includes/ms-functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More