new_cmb2_box

Because OOP can be scary.

Description

new_cmb2_box( (array) array $meta_box_config ); 

Parameters (1)

0. $meta_box_config (array) => array $meta_box_config
The meta box config.

Usage

  1. if ( !function_exists( 'new_cmb2_box' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'cmb2/includes/helper-functions.php'; 
  3.  
  4. // The meta box config. 
  5. $meta_box_config = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = new_cmb2_box($meta_box_config); 
  9.  

Defined (1)

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

/includes/helper-functions.php  
  1. function new_cmb2_box( array $meta_box_config ) { 
  2. return cmb2_get_metabox( $meta_box_config );