send_auth_cookies

FILTER wp-includes\pluggable.php (ligne 1185) github
Allows preventing auth cookies from actually being sent to the client.

Paramètres

Entrée :
true, $expire, $expiration, $user_id, $scheme, $token
Sortie :
@param bool   $send       Whether to send auth cookies to the client. Default true.
@param int    $expire     The time the login grace period expires as a UNIX timestamp.
@param int    $expiration The time when the logged-in authentication cookie expires as a UNIX timestamp.
@param int    $user_id    User ID. Zero when clearing cookies.
@param string $scheme     Authentication scheme. Values include 'auth' or 'secure_auth'.
@param string $token      User's session token to use for this cookie. Empty string when clearing cookies.

Utilisation

// Modifier la valeur avec le filtre 'send_auth_cookies'
add_filter('send_auth_cookies', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(true) {
    // Modifier la valeur
    return true;
}

Actualités

Chargement des actualités...