Exchange Theme API: transaction (date)

From IThemes Codex
Jump to: navigation, search
it_exchange( 'transaction', 'date', 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 transaction date.

Description

Used to display the transaction date.

Options

'before' - Used to add html before the date.
	$default: empty
	$options: Any valid html.
'after' - Used to add html after the date.
	$default: empty
	$options: Any valid html.
'format' - Used to set the format of the date.
	$default: get_option('date_format')
	$options: Any valid date format.
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

<?php it_exchange( 'transaction', 'date' ); ?>
Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox