password_reset WordPress Action Hook

The password_reset hook is a hook that is called when a user initiates a password reset. This hook can be used to do any necessary actions that need to happen when a user initiates a password reset.

do_action( 'password_reset', WP_User $user, string $new_pass ) #

Fires before the user’s password is reset.


Parameters

$user

(WP_User)The user.

$new_pass

(string)New user password.


Top ↑

More Information

Runs after the user submits a new password during password reset but before the new password is actually set.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.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