wpseek.com
A WordPress-centric search engine for devs and theme authors



user_{$field} › WordPress Filter Hooks

Since2.9.0
Deprecatedn/a
apply_filters( "user_{$field}", $value, $user_id, $context )
Parameters: (3)
  • (mixed) $value The user object value to sanitize.
    Required: Yes
  • (int) $user_id User ID.
    Required: Yes
  • (string) $context The context to filter within.
    Required: Yes
Defined at:
Codex:

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.





Source

$value = apply_filters( "user_{$field}", $value, $user_id, $context );