edit_user_profile
do_action( ‘edit_user_profile’, WP_User $profileuser )
操作挂钩:在“编辑用户”屏幕上的“关于用户”设置表后激发。
Action Hook: Fires after the ‘About the User’ settings table on the ‘Edit User’ screen.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$profileuser | (WP_User) | 当前WP_用户对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.0.0 | wp-admin/user-edit.php:725 | 0 | 0 |
笔记(Notes)
此操作可用于将表单添加到后端用户编辑屏幕并保存一些其他用户元数据。
edit_user_profile 为WP2原创文章,链接:https://www.wp2.cn/hook/edit_user_profile/