On this page
apply_filters( 'allow_password_reset', bool $allow, int $user_id )
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
File: wp-includes/user.php. View all references
$allow = apply_filters( 'allow_password_reset', $allow, $user->ID );
Related
Used By
| Used By | Description |
|---|---|
| get_password_reset_key() wp-includes/user.php | Creates, stores, then returns a password reset key for user. |
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/allow_password_reset