do_action( 'wp_authenticate_application_password_errors', WP_Error $error, WP_User $user, array $item, string $password )
- Since
- 5.6.0
Fires when an application password has been successfully checked as valid.
Description
This allows for plugins to add additional constraints to prevent an application password from being used.
Parameters
$errorWP_Error- The error object.
$userWP_User- The user authenticating.
$itemarray- The details about the application password.
$passwordstring- The raw supplied password.
Fired at · 1
wp-includes/user.php:478wp_authenticate_application_password()
Source
* * @param WP_Error $error The error object. * @param WP_User $user The user authenticating. * @param array $item The details about the application password. * @param string $password The raw supplied password. */ do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password ); if ( $error->has_errors() ) { /** This action is documented in wp-includes/user.php */ do_action( 'application_password_failed_authentication', $error ); return $error;History
Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.