Exchange Theme API: coupons (supported)

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

Description

Used to check if support for coupons is enabled.

Options

'type' - Used to check if this type of coupons is supported.
	$default: false
	$options: false, cart
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

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

Examples

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox