apply_filters( ‘new_site_email’, array $new_site_email, WP_Site $site, WP_User $user )

In this article

Filters the content of the email sent to the Multisite network administrator when a new site is created.

Description

Content should be formatted for transmission via wp_mail() .

Parameters

$new_site_emailarray
Used to build wp_mail() .
  • to string
    The email address of the recipient.
  • subject string
    The subject of the email.
  • message string
    The content of the email.
  • headers string
    Headers.
$siteWP_Site
Site object of the new site.
$userWP_User
User object of the administrator of the new site.

Source

$new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );

Changelog

VersionDescription
5.6.0Introduced.

User Contributed Notes

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