Exchange/it exchange add session data

From IThemes Codex
Revision as of 09:53, June 13, 2013 by Gaarai (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Adds session data to the iThemes Exchange Session.


This simply adds an item to the data array of the PHP Session.

Shopping cart plugins are responsible for managing the structure of the data

If a key is passed, it will be used as the key in the data array. Otherwise, the data array will just be

incremented. eg: ['data'][] = $data;

History

Since 0.3.7

Parameters

<?php it_exchange_add_session_data( $key, $data ); ?>
  • mixed $data data as passed by the shopping cart
  • mixed $key optional identifier for the data.

Returns

void

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox