Function wc_setcookie

Set a cookie - wrapper for setcookie using WP constants

Package: WooCommerce\Functions
Author: WooThemes
Located at includes/wc-core-functions.php

Parameters summary

string $name Name of the cookie being set
string $value Value of the cookie
integer $expire = 0 Expiry of the cookie
string $secure = false Whether the cookie should be served only over https
WooCommerce API documentation generated by ApiGen 2.8.0