wp_authenticate_application_password_errors

ACTION wp-includes\user.php (ligne 478) github
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.

Paramètres

Entrée :
$error, $user, $item, $password
Sortie :
@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.

Utilisation

// Ajouter une fonction au hook action 'wp_authenticate_application_password_errors'
add_action('wp_authenticate_application_password_errors', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($error, $user, $item, $password) {
    // Votre code ici
    error_log('Hook wp_authenticate_application_password_errors déclenché');
}

Actualités

Chargement des actualités...