apply_filters( "user_{$field}", mixed $value, int $user_id, string $context )

Filters the value of a user field in a standard context.

Description 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 Parameters


(mixed) The user object value to sanitize.


(int) User ID.


(string) The context to filter within.

Top ↑

Source Source

File: wp-includes/user.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.