Exchange Theme API: transaction (product-download)

From IThemes Codex
Revision as of 09:18, September 24, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'transaction', 'product-download', array( 'option' => 'value' ) )

Parameters
	string - $context the context or context.tag combination, if context.tag is used, the tag parameter can be omitted.
	string - $tag the tag, can be hyphenated or not. Prefix with 'get' as shorthand for the array( 'return' => 'true' ) option.
	mixed  - $options associative array.
Returns
	The attributes for a download that is a part of a specific transaction.

Description

Intended to be used inside a while loop with it_exchange( 'transaction', 'product-downloads' ); Use the attribute option to indicated what type of download attribute you want. ie: array( 'attribute' => 'title' ); See lib/templates/content-downloads/ files for examples.

Options

'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'transaction', 'product-download', array( 'attribute' => 'title' ) ); ?>
Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox