On this page
apply_filters( "edit_user_{$field}", mixed $value, int $user_id )
Filters a user field value in the ‘edit’ context.
Description
The dynamic portion of the hook name, $field, refers to the prefixed user field being filtered, such as ‘user_login’, ‘user_email’, ‘first_name’, etc.
Parameters
$valuemixed-
Value of the prefixed user field.
$user_idint-
User ID.
Source
File: wp-includes/user.php. View all references
$value = apply_filters( "edit_user_{$field}", $value, $user_id );
Related
Used By
| Used By | Description |
|---|---|
| sanitize_user_field() wp-includes/user.php | Sanitizes user field based on context. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/edit_user_field