Skip to content
ajitbohra edited this page Dec 1, 2014 · 7 revisions

A Time field.

JavaScript timepicker is used for selecting the time.

Data is stored as a string in the format H:i A

time

Args

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

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'   => 'example-field-time', 
	'name' => 'A time field', 
	'type' => 'time', 
),