Filters the contents of the email sent when an existing user is invited to join the site.
Parameters
$new_user_emailarray- Used to build wp_mail() .
tostringThe email address of the invited user.subjectstringThe subject of the email.messagestringThe content of the email.headersstringHeaders.
$user_idint- The invited user’s ID.
$rolearray- Array containing role information for the invited user.
$newuser_keystring- The key of the invitation.
Source
$new_user_email = apply_filters( 'invited_user_email', $new_user_email, $user_id, $role, $newuser_key );
Changelog
| Version | Description |
|---|---|
| 5.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.