wphooks.info - lostpassword_post

lostpassword_post

(trunk - 5.0-alpha-42993)

The hook occurs in the following file:

/wp-login.php:
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
	/**
	 * Fires before errors are returned from a password reset request.
	 *
	 * @since 2.1.0
	 * @since 4.4.0 Added the `$errors` parameter.
	 *
	 * @param WP_Error $errors A WP_Error object containing any errors generated
	 *                         by using invalid credentials.
	 */
	do_action( 'lostpassword_post', $errors );

	if ( $errors->has_errors() ) {
		return $errors;
	}

	if ( ! $user_data ) {
		$errors->add( 'invalidcombo', __( '<strong>ERROR</strong>: Invalid username or email.' ) );
		return $errors;
	}