i4w_cookie_name
Usage
This shortcode will capture an existing COOKIE variable with the given name and display if available.
[ELSE_cookie_Name] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| name | The "name" suffix defines the name of the COOKIE variable to be displayed. | None | No |
| index | Allows accessing nested array values within the cookie. | None | No |
Example
Shortcode
[i4w_cookie_testcookie]
Returns the $_COOKIE variable named "testcookie".
Shortcode
[i4w_cookie_testcookie index='date']
Returns the $_COOKIE variable named "testcookie[date]".
Shortcode
[i4w_cookie_testcookie index='customer|name']
Returns the $_COOKIE variable named "testcookie[customer][name]".