type = 'Chosen_Select'; $this->defaults = array( 'multiple' => 0, 'allow_null' => 0, 'choices' => array(), 'default_value' => array(), 'class' => '', ); } public function render( $field, $value = null ) { $field = array_merge( $this->defaults, $field ); if ( ! isset( $field['id'] ) ) { $field['id'] = sanitize_title( $field['id'] ); } $current = $value ? $value : array(); $choices = $field['choices']; ?>