wpmu_signup_blog_notification_email хук-фильтр . WP 3.0.0
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', 'filter_function_name_5725', 10, 8 ); function filter_function_name_5725( $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 981-992
apply_filters( 'wpmu_signup_blog_notification_email', /* translators: New site notification email. 1: Activation URL, 2: New site URL. */ __( "To activate your blog, 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 ),