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.


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...
The error object.
The user authenticating.
The details about the application password.
The raw supplied password.


Since 5.6.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.