One thing I do want to remind of and keep in mind is that this is very much a new feature that was just added in the past 24 hours. Is possible that some details slipped by.
@jtsternberg I was able to finally recreate this, and it feels like https://github.com/CMB2/CMB2/issues/853 started occurring for text fields now.
Steps that recreated for me:
* Add a new post
* Add some meta to a group, specifically text fields
* Save the post
* Add a new group
* Note that text fields are pre-populated.
CMB2 config that worked for me for this, don’t forget to change the post type to somethin you have registered:
add_action( 'cmb2_init', 'add_pro_paypal_box' );
function add_pro_paypal_box() {
global $listmesettings_id;
$pro_paypal_box = new_cmb2_box( array(
'id' => '_pro_paypal_box',
'title' => '???? ????? ????????',
'object_types' => array( 'movie' ),
'context' => 'normal',
'priority' => 'high',
) );
// Kidum group
$pro_paypal_kidum = $pro_paypal_box->add_field( array(
'id' => 'pro_paypal_kidum',
'type' => 'group',
'options' => array(
'group_title' => 'group {#}',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '????',
'id' => 'place',
'type' => 'select',
'show_option_none' => true,
'options' => array( 1 => 'something' ),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '??? ?????',
'id' => 'state',
'type' => 'select',
'show_option_none' => true,
'options' => array(
'active' => '????',
'canceled' => '?????',
),
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '???? ?? ????? ????',
'id' => 'payer_mail',
'type' => 'text',
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '?????',
'id' => 'start',
'type' => 'text_small',
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '????',
'id' => 'end',
'type' => 'text_small',
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '???? ????? ????',
'id' => 'subscr_id',
'type' => 'text_small',
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '????',
'id' => 'price',
'type' => 'text_small',
) );
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
'name' => '????',
'id' => 'fee',
'type' => 'text_small',
) );
}