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



lostpassword_user_data › WordPress Filter Hooks

Seit5.7.0
Veraltetn/v
apply_filters( 'lostpassword_user_data', $user_data, $errors )
Parameter: (2)
  • (WP_User|false) $user_data WP_User object if found, false if the user does not exist.
    Erforderlich: Ja
  • (WP_Error) $errors A WP_Error object containing any errors generated by using invalid credentials.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the user data during a password reset request.

Allows, for example, custom validation using data other than username or email address.





Quellcode

$user_data = apply_filters( 'lostpassword_user_data', $user_data, $errors );