update_welcome_email хук-фильтр . WP 3.0.0
Filters the content of the welcome email after site activation.
Content should be formatted for transmission via wp_mail().
Использование
add_filter( 'update_welcome_email', 'filter_function_name_6332', 10, 6 ); function filter_function_name_6332( $welcome_email, $blog_id, $user_id, $password, $title, $meta ){ // filter... return $welcome_email; }
- $welcome_email(строка)
- Message body of the email.
- $blog_id(число)
- Blog ID.
- $user_id(число)
- User ID.
- $password(строка)
- User password.
- $title(строка)
- Site title.
- $meta(массив)
- Signup meta data. By default, contains the requested privacy setting and lang_id.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
wp-includes/ms-functions.php 1600
$welcome_email = apply_filters( 'update_welcome_email', $welcome_email, $blog_id, $user_id, $password, $title, $meta );