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

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

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

add_filter( 'newuser_notify_siteadmin', 'wp_kama_newuser_notify_siteadmin_filter', 10, 2 );

/**
 * Function for `newuser_notify_siteadmin` filter-hook.
 * 
 * @param string  $msg  Email body.
 * @param WP_User $user WP_User instance of the new user.
 *
 * @return string
 */
function wp_kama_newuser_notify_siteadmin_filter( $msg, $user ){

	// filter...
	return $msg;
}
$msg(строка)
Email body.
$user(WP_User)
WP_User instance of the new user.

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

С версии 3.0.0 Введена.

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

newuser_notify_siteadmin()
newuser_notify_siteadmin
wp-includes/ms-functions.php 1527
$msg = apply_filters( 'newuser_notify_siteadmin', $msg, $user );

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

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