CMB2_Type_Select_Timezone

CMB select_timezone field type.

Defined (1)

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

/includes/types/CMB2_Type_Select_Timezone.php  
  1. class CMB2_Type_Select_Timezone extends CMB2_Type_Select { 
  2.  
  3. public function render() { 
  4.  
  5. $this->field->args['default'] = $this->field->get_default() 
  6. ? $this->field->get_default() 
  7. : CMB2_Utils::timezone_string(); 
  8.  
  9. $this->args = wp_parse_args( $this->args, array( 
  10. 'class' => 'cmb2_select cmb2-select-timezone',  
  11. 'options' => wp_timezone_choice( $this->field->escaped_value() ),  
  12. 'desc' => $this->_desc(),  
  13. ) ); 
  14.  
  15. return parent::render();