Exchange Theme API: registration (disabled-message)

From IThemes Codex
Revision as of 12:32, August 14, 2013 by Kopepasah (talk | contribs) (Created page with "__NOTOC__ <pre class="brush:php, gutter:false, toolbar:false"> it_exchange( 'registration', 'disabled-message', array( 'option' => 'value' ) ) Parameters string - $context t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
it_exchange( 'registration', 'disabled-message', 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 profile page registration disabled message.


Outputs the profile page registration disabled message.


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


<?php it_exchange( 'registration', 'disabled-message' ); ?>