WordPress action hook
validate_password_reset
Fired by 44 WordPress plugins, running on 7.5M+ sites between them.
“This action is documented in wp-login.php”
How to use validate_password_reset
It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'validate_password_reset', function( $errors, $user ) {
// Your code runs here.
}, 10, 2 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
44 plugins that fire validate_password_reset
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'validate_password_reset', $errors, $user )includes/class-wc-form-handler.php:1338 -
Ultimate Member200,000+ installs
do_action( 'validate_password_reset', $errors, $user )includes/core/class-password.php:620 -
Defender Security80,000+ installs
do_action( 'validate_password_reset', $error_object, $user )src/view/mask-login/reset.php:29 -
Theme My Login50,000+ installs
do_action( 'validate_password_reset', $errors, $user )includes/actions.php:827 -
User Registration & Membership50,000+ installs
do_action( 'validate_password_reset', $errors, $user )includes/class-ur-form-handler.php:838 -
Login & Register Customizer30,000+ installs
do_action( 'validate_password_reset', $errors, $user )includes/class-xoo-el-form-handler.php:835 -
WP Travel Engine20,000+ installs
do_action( 'validate_password_reset', $errors, $user )includes/dashboard/class-wp-travel-engine-form-handler.php:278 -
User Frontend20,000+ installs
do_action( 'validate_password_reset', $errors, $user )includes/Free/Simple_Login.php:803 -
Frontend Reset Password10,000+ installs
do_action( 'validate_password_reset', new WP_Error(), $user )includes/somfrp-functions.php:650 -
Classified Listing8,000+ installs
do_action( 'validate_password_reset', $errors, $user )app/Controllers/FormHandler.php:399 -
Masteriyo LMS6,000+ installs
do_action( 'validate_password_reset', $validation_error, $user )includes/FormHandler/PasswordResetFormHandler.php:178 -
WP Delicious4,000+ installs
do_action( 'validate_password_reset', $errors, $user )src/dashboard/class-delicious-recipes-form-handler.php:230 -
AJAX Login and Registration modal popup + inline form3,000+ installs
do_action( 'validate_password_reset', $errors, $user )includes/class-ajax.php:727 -
WP Travel3,000+ installs
do_action( 'validate_password_reset', $errors, $user )inc/class-wp-travel-form-handler.php:207 -
Property Hive3,000+ installs
do_action( 'validate_password_reset', $errors, $user )includes/class-ph-ajax.php:830 -
Loginfy2,000+ installs
do_action( 'validate_password_reset', $errors, $user )Inc/Core/Inc/loginfy-login-template.php:1027 -
School Management System1,000+ installs
do_action( 'validate_password_reset', $errors, $user )wpsp-school-login.php:535 -
Pie Register1,000+ installs
do_action( 'validate_password_reset', $errors, $user )get_password.php:23 -
SureDash1,000+ installs
do_action( 'validate_password_reset', $errors, $user )core/blocks/login.php:226 -
BrandNestor100+ installs
do_action( 'validate_password_reset', $errors, $user )src/Core/RequestHandler.php:259 -
StranoWeb Ajax Login100+ installs
do_action( 'validate_password_reset', $errors, $user )includes/functions/functions.php:745 -
WP Frontend Profile100+ installs
do_action( 'validate_password_reset', $errors, $user )inc/class-wpfep-login.php:507 -
User Registration & Login50+ installs
do_action( 'validate_password_reset', $errors, $user )includes/class-sav-frontend.php:3725 -
BoxCart40+ installs
do_action( 'validate_password_reset', $errors, $user )includes/frontend/class-boxcart-account.php:1846 -
Advanced Members for ACF30+ installs
do_action( 'validate_password_reset', $errors, $user )core/actions/password-reset.php:185 -
DynamicKit for Elementor20+ installs
do_action( 'validate_password_reset', $errors, $user )modules/login-form/module.php:380 -
YOOAdmin10+ installs
do_action( 'validate_password_reset', $errors, $user )includes/core/custom-login-standalone.php:1457 -
WP Front End Login10+ installs
do_action( 'validate_password_reset', $this->errors, $user )wp-front-end-login.php:627 -
WPBoutik10+ installs
do_action( 'validate_password_reset', $errors, $user )classes/plugin.php:1364 -
System Ticket Support10+ installs
do_action( 'validate_password_reset', $errors, wp_get_current_user() )inc/form-handler.class.php:469 -
YaExam10+ installs
do_action( 'validate_password_reset', $errors, $user )includes/class-yaexam-form-handler.php:360 -
Anar Toolkit10+ installs
do_action( 'validate_password_reset', $errors, $user )src/Auth/PasswordRecovery.php:124 -
SignInForgeFewer than 10 installs
do_action( 'validate_password_reset', $errors, $resetKey->user )src/Authentication/WordPressAuthenticationGateway.php:134 -
PeoplePressFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )src/modules/user/handlers/controllers/class-pp-reset-password-controller.php:73 -
Dashboard PlusFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )modules/customizer/templates/dashplu-login-page.php:992 -
MentorKit LMS: SCORM Courses, Quizzes, Group Management & CertificatesFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )includes/frontend/auth-handler.php:2333 -
ReleaseCart: Sell Digital Downloads and Software License KeysFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )src/Frontend/PasswordResetActionListener.php:569 -
Support PortalFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )inc/class-yoohw-support-controller.php:951 -
Turgor Exam EngineFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )src/Auth/ResetPassword.php:47 -
DashbreadFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )src/Auth/Auth.php:280 -
TSO Login OrganizerFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )includes/tsolo-actions.php:766 -
Polanger Dating for WordPressFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )src/Accounts/Auth_Service.php:258 -
Vital Addons for LearnDashFewer than 10 installs
do_action( 'validate_password_reset', $policy_errors, $user )src/Modules/WordPress/FrontEndLogin.php:674 -
atshift MembersFewer than 10 installs
do_action( 'validate_password_reset', $errors, $user )includes/class-registration.php:188
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.