wpmu_signup_blog_notification_email
Filters the message content of the new blog notification email.
Content should be formatted for transmission via wp_mail().
Использование
add_filter( 'wpmu_signup_blog_notification_email', 'wp_kama_wpmu_signup_blog_notification_email_filter', 10, 8 );
/**
* Function for `wpmu_signup_blog_notification_email` filter-hook.
*
* @param string $content Content of the notification email.
* @param string $domain Site domain.
* @param string $path Site path.
* @param string $title Site title.
* @param string $user_login User login name.
* @param string $user_email User email address.
* @param string $key Activation key created in wpmu_signup_blog().
* @param $meta
*
* @return string
*/
function wp_kama_wpmu_signup_blog_notification_email_filter( $content, $domain, $path, $title, $user_login, $user_email, $key, $meta ){
// filter...
return $content;
}
- $content(строка)
- Content of the notification email.
- $domain(строка)
- Site domain.
- $path(строка)
- Site path.
- $title(строка)
- Site title.
- $user_login(строка)
- User login name.
- $user_email(строка)
- User email address.
- $key(строка)
- Activation key created in wpmu_signup_blog().
- $meta
- -
Список изменений
| С версии 3.0.0 | Введена. |
Где вызывается хук
wpmu_signup_blog_notification_email
wp-includes/ms-functions.php 1006-1017
apply_filters( 'wpmu_signup_blog_notification_email', /* translators: New site notification email. 1: Activation URL, 2: New site URL. */ __( "To activate your site, please click the following link:\n\n%1\$s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your site here:\n\n%2\$s" ), $domain, $path, $title, $user_login, $user_email, $key, $meta ),