do_action( 'wp_authenticate_application_password_errors',
$error,
$user,
$item,
$password );
if ( is_wp_error( $error ) &&
$error->
has_errors() ) { /** This action is documented in wp-includes/user.php */
do_action( 'application_password_failed_authentication',
$error );
return $error;
} WP_Application_Passwords::
record_application_password_usage( $user->ID,
$item['uuid'
] );
/**
* Fires after an application password was used for authentication.
*
* @since 5.6.0
*
* @param WP_User $user The user who was authenticated.
* @param array $item The application password used.
*/
do_action( 'application_password_did_authenticate',
$user,
$item );