update_welcome_user_email
Filters the content of the welcome email after user activation.
Content should be formatted for transmission via wp_mail().
Использование
add_filter( 'update_welcome_user_email', 'wp_kama_update_welcome_user_email_filter', 10, 4 ); /** * Function for `update_welcome_user_email` filter-hook. * * @param string $welcome_email The message body of the account activation success email. * @param int $user_id User ID. * @param string $password User password. * @param array $meta Signup meta data. * * @return string */ function wp_kama_update_welcome_user_email_filter( $welcome_email, $user_id, $password, $meta ){ // filter... return $welcome_email; }
- $welcome_email(строка)
- The message body of the account activation success email.
- $user_id(int)
- User ID.
- $password(строка)
- User password.
- $meta(массив)
- Signup meta data.
По умолчанию: empty array
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
wp-includes/ms-functions.php 1867
$welcome_email = apply_filters( 'update_welcome_user_email', $welcome_email, $user_id, $password, $meta );