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

Used to build wp_mail().<br>

  • 'to'
    (string) The email address of the invited user.<br>
  • 'subject'
    (string) The subject of the email.<br>
  • 'message'
    (string) The content of the email.<br>
  • 'headers'
    (string) Headers.<br>

$user_id

The invited user's ID.

$role

Array containing role information for the invited user.

$newuser_key

The key of the invitation.


Source

File: wp-admin/user-new.php

View on GitHub


Changelog

Changelog
Version Description
5.6.0 Introduced.