CMB2_Type_Textarea_Code

CMB textarea_code field type.

Defined (1)

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

/vendor/wordimpress/maps-builder-core/includes/libraries/metabox/includes/types/CMB2_Type_Textarea_Code.php  
  1. class CMB2_Type_Textarea_Code extends CMB2_Type_Textarea { 
  2.  
  3. /** 
  4. * Handles outputting an 'textarea' element 
  5. * @since 1.1.0 
  6. * @param array $args Override arguments 
  7. * @return string Form textarea element 
  8. */ 
  9. public function render() { 
  10. return $this->rendered( 
  11. sprintf( '<pre>%s', parent::render( array( 
  12. 'class' => 'cmb2-textarea-code',  
  13. 'desc' => '</pre>' . $this->_desc( true ),  
  14. ) ) ) 
  15. );