woocommerce_cookie_httponly

FILTER woocommerce\includes\wc-core-functions.php (ligne 1112) github
Controls whether the cookie should only be accessible via the HTTP protocol, or if it should also be accessible to Javascript.

Paramètres

Entrée :
$httponly, $name, $value, $expire, $secure
Sortie :
@param bool   $httponly If the cookie should only be accessible via the HTTP protocol.
@param string $name     Cookie name.
@param string $value    Cookie value.
@param int    $expire   When the cookie should expire.
@param bool   $secure   If the cookie should only be served over HTTPS.

Utilisation

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

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

Actualités

Chargement des actualités...