newblog_notify_siteadmin
Filters the message body of the new site activation email sent to the network administrator.
Usage
add_filter( 'newblog_notify_siteadmin', 'wp_kama_newblog_notify_siteadmin_filter', 10, 2 ); /** * Function for `newblog_notify_siteadmin` filter-hook. * * @param string $msg Email body. * @param int|string $blog_id The new site's ID as an integer or numeric string. * * @return string */ function wp_kama_newblog_notify_siteadmin_filter( $msg, $blog_id ){ // filter... return $msg; }
- $msg(string)
- Email body.
- $blog_id(int|string)
- The new site's ID as an integer or numeric string.
Changelog
Since 3.0.0 | Introduced. |
Since 5.4.0 | The $blog_id parameter was added. |
Where the hook is called
newblog_notify_siteadmin
wp-includes/ms-functions.php 1471
$msg = apply_filters( 'newblog_notify_siteadmin', $msg, $blog_id );