invite_user

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$user_id

The invited user's ID.

$role

Array containing role information for the invited user.

$newuser_key

The key of the invitation.

Source Source

File: wp-admin/user-new.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply