CMB2 Meta Box Code
function cmb_meta_box(array $mitul){ $prefix = '_xx_'; $mitul[] = array( 'id' => 'second-section', 'title' => 'This is Second section', 'object_types' => array('post'), 'fields' => array( array( 'name' => 'Enter Your Name', 'type' => 'text', 'id' => $prefix.'hkname' ) ) ); return $mitul; } add_filter('cmb2_meta_boxes','cmb_meta_box');