profile_update
do_action( ‘profile_update’, int $user_id , WP_User $old_user_data )
操作挂钩:在更新现有用户后立即激发。
Action Hook: Fires immediately after an existing user is updated.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$user_id | (int) | 用户ID。 |
$old_user_data | (WP_User) | 更新前包含用户数据的对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.0.0 | wp-includes/user.php:1876 | 1 | 0 |
profile_update 为WP2原创文章,链接:https://www.wp2.cn/hook/profile_update/