[ad_1]
As of release 4.1 which just went out today, we’ve added a filter for anyone wanting to alter the cookie settings. Here’s an example of how to do this – just by adding this snippet to your functions.php file.
add_filter('mailchimp_cookie_data', function($data) {
$data['options']['httponly'] = true;
return $data;
});
The filter is provided with a name
of the cookie and the options
are the options needs to be returned to the setcookie
function. For this example, it will set the httponly
to true as you needed. Hope this helps!