Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



user_{$field} ›

Seit2.9.0
Veraltetn/v
apply_filters( "user_{$field}", $value, $user_id, $context )
Parameter: (3)
  • (mixed) $value The user object value to sanitize.
    Erforderlich: Ja
  • (int) $user_id User ID.
    Erforderlich: Ja
  • (string) $context The context to filter within.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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