Controls whether the cookie should only be accessible via the HTTP protocol, or if it should also be accessible to Javascript.
$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.
// 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;
}
Chargement des actualités...