Function wc_setcookie
Set a cookie - wrapper for setcookie using WP constants
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 |