CMB2_Type_Text_Time

CMB text_time field type.

Defined (1)

The class is defined in the following location(s).

/includes/types/CMB2_Type_Text_Time.php  
  1. class CMB2_Type_Text_Time extends CMB2_Type_Text_Date { 
  2.  
  3. public function render() { 
  4. $this->args = $this->parse_picker_options( 'time', wp_parse_args( $this->args, array( 
  5. 'class' => 'cmb2-timepicker text-time',  
  6. 'value' => $this->field->get_timestamp_format( 'time_format' ),  
  7. 'js_dependencies' => array( 'jquery-ui-core', 'jquery-ui-datepicker', 'jquery-ui-datetimepicker' ),  
  8. ) ) ); 
  9.  
  10. return parent::render(); 
  11.