invite_user

SummerySummery

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

Syntax

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

ParametersParameters

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

SourceSource

File: wp-admin/user-new.php

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top