password_reset, $user, $new_pass

password_reset, $user, $new_pass

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('password_reset, $user, $new_pass') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-my-account.php line 383
    	 * @param string  $new_pass New password for the user in plaintext.
    	 */
    	public static function reset_password( $user, $new_pass ) {
    		// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    		do_action( 'password_reset', $user, $new_pass );
    
    		wp_set_password( $new_pass, $user->ID );
    		update_user_meta( $user->ID, 'default_password_nag', false );
    		// The temporary-password notice is gone for good now, so drop its resend rate-limit timestamp.
    		delete_user_meta( $user->ID, WC_Form_Handler::SET_PASSWORD_RESEND_META );