wpseek.com
A WordPress-centric search engine for devs and theme authors



invite_user › WordPress Action Hooks

Since4.4.0
Deprecatedn/a
do_action( 'invite_user', $user_id, $role, $newuser_key )
Parameters: (3)
  • (int) $user_id The invited user's ID.
    Required: Yes
  • (array) $role Array containing role information for the invited user.
    Required: Yes
  • (string) $newuser_key The key of the invitation.
    Required: Yes
Defined at:
Codex:

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





Source

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