newblog_notify_siteadmin хук-фильтрWP 3.0.0

Filters the message body of the new site activation email sent to the network administrator.

Использование

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(строка)
Email body.
$blog_id(int|строка)
The new site's ID as an integer or numeric string.

Список изменений

С версии 3.0.0 Введена.
С версии 5.4.0 The $blog_id parameter was added.

Где вызывается хук

newblog_notify_siteadmin()
newblog_notify_siteadmin
wp-includes/ms-functions.php 1471
$msg = apply_filters( 'newblog_notify_siteadmin', $msg, $blog_id );

Где используется хук в WordPress

Использование не найдено.