Exchange Theme API: cart-item (title)

From iThemes Codex
Revision as of 16:34, 2 August 2013 by Kopepasah (talk | contribs) (Created page with "__NOTOC__ <pre class="brush:php, gutter:false, toolbar:false"> it_exchange( 'cart-item', 'title', array( 'option' => 'value' ) ) Parameters string - $context the context or...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'cart-item', 'title', 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 title for the cart item.

Description

Used to return the title for the cart item.

Options

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

Usage

<?php it_exchange( 'cart-item', 'title' ); ?>