wphooks.info - lostpassword_post

lostpassword_post

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

/wp-login.php:
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
	/**
	 * 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->get_error_code() )
		return $errors;

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