CMB2_Display_Checkbox

The CMB2 CMB2 Display Checkbox class.

Defined (1)

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

/includes/CMB2_Field_Display.php  
  1. class CMB2_Display_Checkbox extends CMB2_Field_Display { 
  2. /** 
  3. * Display multicheck value. 
  4. * @since 2.2.2 
  5. */ 
  6. protected function _display() { 
  7. echo $this->value === 'on' ? 'on' : 'off';