The default parameter don’t work in group fields
-
When i use this code:
$pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => 'place', 'id' => 'place', 'type' => 'select', 'show_option_none' => true, 'options' => $places_options, ) ); $pro_paypal_box->add_group_field( $pro_paypal_kidum, array( 'name' => 'kidum_state', 'id' => 'state', 'type' => 'select', 'show_option_none' => true, 'default' => 'active', 'options' => array( 'active' => 'active', 'canceled' => 'canceled', ), ) );
I get ‘canceled’ as default option.
- The topic ‘The default parameter don’t work in group fields’ is closed to new replies.