WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about invite_user

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/user-new.php do_action 111 /**
* Fires immediately after an existing user is invited to join the site, but before the notification is sent.
*
* @since 4.4.0
*
* @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.
*/

Hook Parameters

Parameter Type Name Description
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.