user_new_form

动作钩子


do_action( 'user_new_form', 'add-existing-user' )
参数
  • (string)
    $type
    A contextual string specifying which type of new user form the hook follows.
    Required:
定义位置
  • wp-admin/user-new.php
    , line 477
引入
3.7.0
弃用

在新用户表单结束时触发。

传递一个上下文字符串,以使两种类型的新用户表单具有唯一的目标性。上下文是 “add-existing-user”(多站点)和 “add-new-user”(单站点和网络管理员)。

do_action( 'user_new_form', 'add-existing-user' );