yourprefix_display_text_small_column

Manually render a field column display.

Description

yourprefix_display_text_small_column( (array) $field_args, (CMB2_Field) $field ); 

Parameters (2)

0. $field_args (array)
Array of field arguments.
1. $field (CMB2_Field)
The field object

Usage

  1. if ( !function_exists( 'yourprefix_display_text_small_column' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'cmb2/example-functions.php'; 
  3.  
  4. // Array of field arguments. 
  5. $field_args = array(); 
  6.  
  7. // The field object 
  8. $field = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = yourprefix_display_text_small_column($field_args, $field); 
  12.  

Defined (1)

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

/example-functions.php  
  1. function yourprefix_display_text_small_column( $field_args, $field ) { 
  2. ?> 
  3. <div class="custom-column-display <?php echo $field->row_classes(); ?>"> 
  4. <p><?php echo $field->escaped_value(); ?></p> 
  5. <p class="description"><?php echo $field->args( 'description' ); ?></p> 
  6. </div> 
  7. <?php