i4w_set

Usage:

This shortcode is used to set variable with a given value. This variable will then be “remembered” while shortcodes are processed for a given post, page or widget.

This shortcode does NOT supports conditional branching with [ELSE_set].

Shortcode nesting is NOT supported.

Parameters:

variable name=value The variable that you wish to define and the corresponding value that should be assigned to it.
Default: none.
Required: yes.

Example:

[i4w_set myVariable='12345']

While the “current” page/post is being rendered, this variable (its assigned value) can be queried/fetched into other shortcodes, page content, etc, by using: {:myVariable:}

API:

There is no API function equivalent for this shortcode.