Skip to content

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.

ParameterDescriptionDefaultRequired
nameThe “name” suffix defines the name of the COOKIE variable to be displayed.NoneNo
indexAllows accessing nested array values within the cookie.NoneNo
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]”.