allow_password_reset WordPress Filter Hook

The allow_password_reset WordPress hook is used to allow or disallow password resetting for a user. This can be useful if you want to prevent a user from resetting their password, or if you want to allow only certain users to reset their passwords.

apply_filters( 'allow_password_reset', bool $allow, int $user_id ) #

Filters whether to allow a password to be reset.


Parameters

$allow

(bool)Whether to allow the password to be reset. Default true.

$user_id

(int)The ID of the user attempting to reset a password.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More