Exchange Theme API: login (username)

From IThemes Codex
Revision as of 09:46, August 7, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'login', 'username', 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 login's username input.

Description

Used to output the login's username data.

Options

'format' - Used to change the format of the output.
	$default: 'html'
	$options: html, label, field-id, field-name
'label' - Used to set the label of the button.
	$default: 'Username'
	$options: Any text.
'return' - Used to return (instead of echo) the output.
	$default: false
	$options: true, false

Usage

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