Skip to content
Barry Ceelen edited this page Aug 25, 2016 · 7 revisions

Radio option fields. Allows an author to select one option using radio inputs.

radio

Args

Required Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'radio' (string) (required)

Field Specific Args

  • options (array) (required) Array key is input value, Array value is input label

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'      => 'example-field-radio', 
	'type'    => 'radio', 
	'options' => array( 
		'option-1' => 'Option 1', 
		'option-2' => 'Option 2'
	)
),