i4w_cookie_name
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
Section titled “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
Section titled “Example”[i4w_cookie_testcookie]Returns the $_COOKIE variable named “testcookie”.
[i4w_cookie_testcookie index='date']Returns the $_COOKIE variable named “testcookie[date]”.
[i4w_cookie_testcookie index='customer|name']Returns the $_COOKIE variable named “testcookie[customer][name]”.