pre_user_{$field}
apply_filters( “pre_user_{$field}”, mixed $value )
筛选器挂钩:筛选“db”上下文中用户字段的值。
Filter Hook: Filters the value of a user field in the ‘db’ context.
说明(Description)
hook name,$字段的动态部分指的是要筛选的带前缀的用户字段,例如“user_login”、“user_email”、“first_name”等。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$value | (mixed) | 前缀用户字段的值。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.9.0 | wp-includes/user.php:1297 | 1 | 0 |
pre_user_{$field} 为WP2原创文章,链接:https://www.wp2.cn/hook/pre_user_field/