Action hook 'resetpass_form'

in WP Core File wp-login.php at line 1072

View Source

resetpass_form

Action Hook
Description
Fires following the 'Strength indicator' meter in the user password reset form.

Hook Information

File Location wp-login.php View on GitHub
Hook Type Action
Line Number 1072

Hook Parameters

Type Name Description
WP_User $user User object of the user whose password is being reset.

Usage Examples

Basic Usage
<?php
// Hook into resetpass_form
add_action('resetpass_form', 'my_custom_function', 10, 1);

function my_custom_function($user) {
    // Your custom code here
}

Source Code Context

wp-login.php:1072 - How this hook is used in WordPress core
<?php
1067  			 *
1068  			 * @since 3.9.0
1069  			 *
1070  			 * @param WP_User $user User object of the user whose password is being reset.
1071  			 */
1072  			do_action( 'resetpass_form', $user );
1073  
1074  			?>
1075  			<input type="hidden" name="rp_key" value="<?php echo esc_attr( $rp_key ); ?>" />
1076  			<p class="submit reset-pass-submit">
1077  				<button type="button" class="button wp-generate-pw hide-if-no-js skip-aria-expanded"><?php _e( 'Generate Password' ); ?></button>

PHP Documentation

<?php
/**
			 * Fires following the 'Strength indicator' meter in the user password reset form.
			 *
			 * @since 3.9.0
			 *
			 * @param WP_User $user User object of the user whose password is being reset.
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-login.php
Related Hooks

Related hooks will be displayed here in future updates.