add_action( 'cmb2_admin_init', 'tprofile_user_fighting_meta');
function tprofile_user_fighting_meta(){
$tprofile_user_fight_info = new_cmb2_box(
array(
'id' => 'fighting-info',
'object_types' => array( 'user' ),
'title' => __( 'Fighting Profile', 'tprofile' )
)
);
$tprofile_user_fight_info->add_field(
array(
'id' => '_user-fighting-style',
'name' => __( 'Your fighting styles', 'tprofile' ),
'type' => 'multicheck',
'options' => array(
'MMA' => __('MMA', 'tprofile' ),
'Kikboxing' => __( 'Kikboxing', 'tprofile' ),
'Boxing' => __( 'Boxing', 'tprofile' ),
'Judo' => __( 'Judo', 'tprofile' ),
'Taekwondo' => __( 'Taekwondo', 'tprofile'),
'Karate' => __( 'Karate', 'tprofile' ),
'Brazilian' => __( 'Brazilian Jiu-jitsu', 'tprofile' ),
'Wrestling' => __( 'Wrestling', 'tprofile' ),
'Capoeira' => __( 'Capoeira', 'tprofile' ),
'Muay Thai' => __( 'Muay Thai', 'tprofile' ),
'Karate Kyokushinkai'=> __('Karate Kyokushinkai', 'tprofile' ),
'Kudo Daido Juku' => __('Kudo Daido Juku', 'tprofile' ),
)
)
);
}
Values are saving in database in this way: a:3:{i:0;s:3:”MMA”;i:1;s:4:”Judo”;i:2;s:6:”Karate”