auth_cookie_malformed

ACTION wp-includes\pluggable.php (ligne 790) github
Fires if an authentication cookie is malformed.

Paramètres

Entrée :
$cookie, $scheme
Sortie :
@param string $cookie Malformed auth cookie.
@param string $scheme Authentication scheme. Values include 'auth', 'secure_auth',

Utilisation

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

function ma_fonction_personnalisee($cookie, $scheme) {
    // Votre code ici
    error_log('Hook auth_cookie_malformed déclenché');
}

Actualités

Chargement des actualités...