Filters the contents of the new user notification email sent to the new user.
Parameters
$wp_new_user_notification_emailarray- Used to build wp_mail() .
tostringThe intended recipient – New user email address.subjectstringThe subject of the email.messagestringThe body of the email.headersstringThe headers of the email.
$userWP_User- User object for new user.
$blognamestring- The site title.
Source
$wp_new_user_notification_email = apply_filters( 'wp_new_user_notification_email', $wp_new_user_notification_email, $user, $blogname );
Changelog
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |
Actually I found a function that does it pretty painlessly – parse_str – takes the variables out of a URLfunction fp_wp_new_user_notification_email( $array, $user, $blogname ) { parse_str( $array[‘message’] ); . . . And now my function contains all the variables in the URL, including $key, with the same names!