wp_authenticate_application_password_errors action-hookWP 5.6.0

Fires when an application password has been successfully checked as valid.

This allows for plugins to add additional constraints to prevent an application password from being used.

Usage

add_action( 'wp_authenticate_application_password_errors', 'wp_kama_authenticate_application_password_errors_action', 10, 4 );

/**
 * Function for `wp_authenticate_application_password_errors` action-hook.
 * 
 * @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.
 *
 * @return void
 */
function wp_kama_authenticate_application_password_errors_action( $error, $user, $item, $password ){

	// action...
}
$error(WP_Error)
The error object.
$user(WP_User)
The user authenticating.
$item(array)
The details about the application password.
$password(string)
The raw supplied password.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

wp_authenticate_application_password()
wp_authenticate_application_password_errors
wp-includes/user.php 428
do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password );

Where the hook is used in WordPress

Usage not found.