do_action( 'invite_user', int $user_id, array $role, string $newuser_key )

Fires immediately after an existing user is invited to join the site, but before the notification is sent.


Parameters

$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.

Top ↑

Source

File: wp-admin/user-new.php. View all references

do_action( 'invite_user', $user_id, $role, $newuser_key );

Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.