WordPress at Your Fingertips
filter is not described

new_site_email filter-hook . WP 5.6.0

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

Content should be formatted for transmission via wp_mail().


add_filter( 'new_site_email', 'filter_function_name_3026', 10, 3 );
function filter_function_name_3026( $new_site_email, $site, $user ){
	// filter...

	return $new_site_email;

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)
Site object of the new site.
User object of the administrator of the new site.


Since 5.6.0 Introduced.

Where the hook is called

wp-includes/ms-functions.php 1796
$new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );

Where in WP core the hook is used WordPress

Usage not found.