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

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

Parameters Parameters


(int) The invited user's ID.


(array) Array containing role information for the invited user.


(string) The key of the invitation.

Top ↑

Source Source

File: wp-admin/user-new.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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