wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



user_{$field} › Les Filtres WordPress

Depuis2.9.0
Dépréciéen/a
› apply_filters( "user_{$field}", $value, $user_id, $context )
Paramètres: (3)
  • () value The user object value to sanitize.
    Requis: Oui
  • () user_id User ID.
    Requis: Oui
  • () context The context to filter within.
    Requis: Oui
Défini(e) dans:
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 );