update_welcome_email хук-фильтр . WP 3.0.0
Filters the content of the welcome email sent to the site administrator after site activation.
Content should be formatted for transmission via wp_mail().
Использование
add_filter( 'update_welcome_email', 'filter_function_name_1909', 10, 6 ); function filter_function_name_1909( $welcome_email, $blog_id, $user_id, $password, $title, $meta ){ // filter... return $welcome_email; }
- $welcome_email(строка)
- Message body of the email.
- $blog_id(число)
- Site ID.
- $user_id(число)
- User ID of the site administrator.
- $password(строка)
- User password, or "N/A" if the user account is not new.
- $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 1661
$welcome_email = apply_filters( 'update_welcome_email', $welcome_email, $blog_id, $user_id, $password, $title, $meta );