Exchange Theme API: store (has-products)

From IThemes Codex
Jump to: navigation, search
it_exchange( 'product', 'has-products' )
	
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.

Returns
	Boolean if the store has products or not.

Description

Used to check if the store has products or not.

Options

None.

Examples

<?php if ( it_exchange( 'store', 'has-products' ) ) : ?>
	...
<?php endif; ?>

Usage

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox