wp_new_user_notification_email_admin
Filters the contents of the new user notification email sent to the site admin.
Использование
add_filter( 'wp_new_user_notification_email_admin', 'wp_kama_new_user_notification_email_admin_filter', 10, 3 ); /** * Function for `wp_new_user_notification_email_admin` filter-hook. * * @param array $wp_new_user_notification_email_admin Used to build wp_mail(). * @param WP_User $user User object for new user. * @param string $blogname The site title. * * @return array */ function wp_kama_new_user_notification_email_admin_filter( $wp_new_user_notification_email_admin, $user, $blogname ){ // filter... return $wp_new_user_notification_email_admin; }
- $wp_new_user_notification_email_admin(массив)
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 new user.
- $blogname(строка)
- The site title.
Список изменений
С версии 4.9.0 | Введена. |
Где вызывается хук
wp_new_user_notification_email_admin
wp-includes/pluggable.php 2188
$wp_new_user_notification_email_admin = apply_filters( 'wp_new_user_notification_email_admin', $wp_new_user_notification_email_admin, $user, $blogname );