|wp-includes/user.php: sanitize_user_field()|| |
Sanitize user field based on context.
Filters the value of a user field in a standard context.
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.
(mixed) The user object value to sanitize.
(int) User ID.
(string) The context to filter within.
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.