Skip to main content

i4w_get_name

Usage

This shortcode will capture an existing GET variable with the given name and display if available.

[ELSE_get_Name] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
NameThe variable name that you wish to display in place of the shortcode.NoneYes
indexIf the variable is an array, indicate the array index to retrieve. For additional depth, separate additional keys with the pipe symbol ("|"). For example: if the desired array element is $_GET['Name']['customer']['FirstName'], you would specify [i4w_get_Name index='customer|FirstName'].NoneNo
defaultDefines the value to return if the variable is not present.NoneNo

Example

Shortcode
[i4w_get_ContactEmail]

Returns the $_GET variable named "ContactEmail".

Shortcode
[i4w_get_Cart index='date']

Returns the $_GET variable named "Cart[date]".

Shortcode
[i4w_get_Cart index='customer|name']

Returns the $_GET variable named "Cart[customer][name]".

Shortcode
[i4w_get_Cart index='customer|email']

Returns the $_GET variable named "Cart[customer][email]".