invite_user

动作钩子


do_action( 'invite_user', $user_id, $role, $newuser_key )
参数
  • (int)
    $user_id
    The invited user’s ID.
    Required:
  • (array)
    $role
    Array containing role information for the invited user.
    Required:
  • (string)
    $newuser_key
    The key of the invitation.
    Required:
定义位置
  • wp-admin/user-new.php
    , line 111
引入
4.4.0
弃用

在现有用户被邀请加入网站后,但在通知发送前立即触发。

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