apply_filters( 'invited_user_email', array $new_user_email , int $user_id , array $role , string $newuser_key )
Filters the contents of the email sent when an existing user is invited to join the site.
Parameters
-
$new_user_email
array -
Used to build wp_mail() .
to
stringThe email address of the invited user.subject
stringThe subject of the email.message
stringThe content of the email.headers
stringHeaders.
-
$user_id
int -
The invited user's ID.
-
$role
array -
Array containing role information for the invited user.
-
$newuser_key
string -
The key of the invitation.
Source
File: wp-admin/user-new.php
.
View all references
$new_user_email = apply_filters( 'invited_user_email', $new_user_email, $user_id, $role, $newuser_key );
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |