Exchange Theme API: coupons (accepting)

From IThemes Codex
Jump to: navigation, search
it_exchange( 'coupons', 'accepting' )
	
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
	Boolean if new coupons are accepted or not.

Description

Used to check if new coupons can be applied.

Options

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

Usage

<?php it_exchange( 'coupons', 'accepting', array( 'type' => 'cart' ) ); ?>

Examples

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox