Filters whether to allow a password to be reset.
Parameters
$allowbool- Whether to allow the password to be reset. Default true.
$user_idint- The ID of the user attempting to reset a password.
Source
return apply_filters( 'allow_password_reset', $allow, $user->ID );
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
Source file is now wp-includes/user.php.