woocommerce_cookie_httponly filter-hook . WC 1.0
Set a cookie - wrapper for setcookie using WP constants.
Usage
add_filter( 'woocommerce_cookie_httponly', 'filter_function_name_9605', 10, 5 ); function filter_function_name_9605( $name, $value, $expire, $secure, $httponly ){ // filter... return $name; }
- $name(string)
- Name of the cookie being set.
- $value(string)
- Value of the cookie.
- $expire(int)
- Expiry of the cookie.
- $secure(true|false)
- Whether the cookie should be served only over https.
- $httponly(true|false)
- Whether the cookie is only accessible over HTTP, not scripting languages like JavaScript. @since 3.6.0.
Where the hook is called
woocommerce_cookie_httponly
woocommerce/includes/wc-core-functions.php 1052
setcookie( $name, $value, $expire, COOKIEPATH ? COOKIEPATH : '/', COOKIE_DOMAIN, $secure, apply_filters( 'woocommerce_cookie_httponly', $httponly, $name, $value, $expire, $secure ) );