Exchange Theme API: coupons (code)

From iThemes Codex
Revision as of 19:30, 1 August 2013 by Kopepasah (talk | contribs) (Created page with "__NOTOC__ <pre class="brush:php, gutter:false, toolbar:false"> it_exchange( 'coupons', 'code', array( 'option' => 'value' ) ) Parameters string - $context the context or co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'coupons', 'code', 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.
	mixed  - $options associative array, or url-style name=value pairs separated by ampersands (&).
Returns
	The coupon code.

Description

Used to output the code for the coupon.

Options

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

Usage

<?php it_exchange( 'coupons', 'code' ) ); ?>

Examples