wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



user_{$field} › Filtr WordPress Hooks

Od2.9.0
Przestarzałyn/a
› apply_filters( "user_{$field}", $value, $user_id, $context )
Parametry: (3)
  • () value The user object value to sanitize.
    Wymagane: Tak
  • () user_id User ID.
    Wymagane: Tak
  • () context The context to filter within.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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