Filter hook 'pre_user_login'

in WP Core File wp-admin/user-new.php at line 216

Description

Filters the contents of the email sent when an existing user is invited to join the site. }

Occurrences

Filename Line Number
wp-admin/user-new.php 216
wp-includes/user.php 2155

Parameters

Type Name Description
array $new_user_email { Used to build wp_mail().
int $user_id The invited user's ID.
array $role Array containing role information for the invited user.
string $newuser_key The key of the invitation.

PHP Doc

/**
			 * Filters the contents of the email sent when an existing user is invited to join the site.
			 *
			 * @since 5.6.0
			 *
			 * @param array $new_user_email {
			 *     Used to build wp_mail().
			 *
			 *     @type string $to      The email address of the invited user.
			 *     @type string $subject The subject of the email.
			 *     @type string $message The content of the email.
			 *     @type string $headers Headers.
			 * }
			 * @param int    $user_id     The invited user's ID.
			 * @param array  $role        Array containing role information for the invited user.
			 * @param string $newuser_key The key of the invitation.
			 *
			 */