wphooks.info - lost_password

lost_password

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

/wp-login.php:
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
		/**
		 * Fires before the lost password form.
		 *
		 * @since 1.5.1
		 * @since 5.0.0 Added the `$errors` parameter.
		 *
		 * @param WP_Error $errors A `WP_Error` object containing any errors generated by using invalid
		 *                         credentials. Note that the error object may not contain any errors.
		 */
		do_action( 'lost_password', $errors );

		login_header( __( 'Lost Password' ), '<p class="message">' . __( 'Please enter your username or email address. You will receive a link to create a new password via email.' ) . '</p>', $errors );

		$user_login = '';

		if ( isset( $_POST['user_login'] ) && is_string( $_POST['user_login'] ) ) {
			$user_login = wp_unslash( $_POST['user_login'] );
		}