Exchange Theme API: transaction (date)

From IThemes Codex
Revision as of 09:41, August 5, 2013 by Kopepasah (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'transaction', 'date', array( 'option' => 'value' ) )
	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.
	The transaction date.


Used to display the transaction date.


'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


<?php it_exchange( 'transaction', 'date' ); ?>