Skip to content
Ajit Bohra edited this page Oct 11, 2016 · 13 revisions

A textarea field for code

textarea_code

Args

Required Args

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

Field Specific Args

  • rows (int) (optional) - The amount of rows the textarea code field should have - used to adjust the height.

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'   => 'example-field-textarea-code', 
	'name' => 'A code textarea field', 
	'type' => 'textarea_code',
    'rows' => 6,
)