added_existing_user
do_action( ‘added_existing_user’, int $user_id , true|WP_Error $result )
操作挂钩:在现有用户添加到站点后立即激发。
Action Hook: Fires immediately after an existing user is added to a site.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$user_id | (int) | 用户ID。 |
$result | (true | WP_Error) | 成功时为True,如果用户不存在或无法添加,则为WP_Error对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
MU (3.0.0) | wp-includes/ms-functions.php:2176 | 1 | 0 |
added_existing_user 为WP2原创文章,链接:https://www.wp2.cn/hook/added_existing_user/