A WordPress-centric search engine for devs and theme authors



invite_user ›

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 The role of invited user.
    Required: Yes
  • (string) $newuser_key The key of the invitation.
    Required: Yes
Defined at:
Codex:

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





Source

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