wp_password_change_notification_email
Filters the contents of the password change notification email sent to the site admin.
Использование
add_filter( 'wp_password_change_notification_email', 'wp_kama_password_change_notification_email_filter', 10, 3 ); /** * Function for `wp_password_change_notification_email` filter-hook. * * @param array $wp_password_change_notification_email Used to build wp_mail(). * @param WP_User $user User object for user whose password was changed. * @param string $blogname The site title. * * @return array */ function wp_kama_password_change_notification_email_filter( $wp_password_change_notification_email, $user, $blogname ){ // filter... return $wp_password_change_notification_email; }
- $wp_password_change_notification_email(массив)
Used to build wp_mail().
-
to(строка)
The intended recipient - site admin email address. -
subject(строка)
The subject of the email. -
message(строка)
The body of the email. - headers(строка)
The headers of the email.
-
- $user(WP_User)
- User object for user whose password was changed.
- $blogname(строка)
- The site title.
Список изменений
С версии 4.9.0 | Введена. |
Где вызывается хук
wp_password_change_notification_email
wp-includes/pluggable.php 2098
$wp_password_change_notification_email = apply_filters( 'wp_password_change_notification_email', $wp_password_change_notification_email, $user, $blogname );