wp_new_user_notification_email WordPress Filter Hook
If you're a developer creating a custom Wordpress plugin, you may want to use the wp_new_user_notification_email hook to send a notification email to the new user. This hook is triggered when a new user is created, and allows you to customize the email that is sent to the new user. You can use this hook to add your own message or content to the email, or to change the format of the email altogether.
apply_filters( 'wp_new_user_notification_email', array $wp_new_user_notification_email , WP_User $user , string $blogname ) #
Filters the contents of the new user notification email sent to the new user.
Parameters
- $wp_new_user_notification_email
(array)Used to build wp_mail().
- 'to'
(string) The intended recipient- New user email address.
- 'subject'
(string) The subject of the email. - 'message'
(string) The body of the email. - 'headers'
(string) The headers of the email.
- 'to'
- $user
(WP_User)User object for new user.
- $blogname
(string)The site title.
Source
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |