Skip to content
Matthew Haines-Young edited this page Sep 24, 2013 · 21 revisions

A simple text input field

Text Field

Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'text' (string) (required)
  • desc (string) Field description. Displayed below label.
  • repeatable (bool) see Repeatable Fields
  • readonly (bool) Prevent authors editing this field value.
  • default (string) Set a default value
  • cols (int) [1-12]

Example Usage

array( 
	'id'   => 'example-field-text', 
	'name' => 'A simple text input', 
	'type' => 'text', 
),