wp_new_user_notification_email_admin WordPress Filter Hook

The wp_new_user_notification_email_admin hook allows you to send an email to the administrator when a new user registers on your site. This can be useful for keeping track of new users and keeping your site secure.

apply_filters( 'wp_new_user_notification_email_admin', array $wp_new_user_notification_email_admin, WP_User $user, string $blogname ) #

Filters the contents of the new user notification email sent to the site admin.


Parameters

$wp_new_user_notification_email_admin

(array)Used to build wp_mail().

  • 'to'
    (string) The intended recipient
    • site admin email address.
  • 'subject'
    (string) The subject of the email.
  • 'message'
    (string) The body of the email.
  • 'headers'
    (string) The headers of the email.

$user

(WP_User)User object for new user.

$blogname

(string)The site title.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.