apply_filters( 'newblog_notify_siteadmin', string $msg, int|string $blog_id )
- Since
- MU (3.0.0), 5.4.0
Filters the message body of the new site activation email sent to the network administrator.
Compatibility
- WordPress
- since 5.4.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$msgstring- Email body.
$blog_idint|string- The new site's ID as an integer or numeric string.
Where this hook fires · 1
wp-includes/ms-functions.php:1510newblog_notify_siteadmin()
Source code
<?php * @since MU (3.0.0) * @since 5.4.0 The `$blog_id` parameter was added. * * @param string $msg Email body. * @param int|string $blog_id The new site's ID as an integer or numeric string. */ $msg = apply_filters( 'newblog_notify_siteadmin', $msg, $blog_id ); /* translators: New site notification email subject. %s: New site URL. */ wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg ); return true;}Changelog
Introduced in 5.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.4.0
The
$blog_id parameter was added.from the docblockMU (3.0.0)
MU (3.0.0)from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.