new Dropdown Field not updating
-
Thank you for creating your awesome Theme-My-Login plugin. For some reason, I’m can’t get it to work right, and I would really appreciate if you can help me with it.
I’m using WordPress version: Latest
Plugin Name version: Version 7.0.15I did this:
function add_tml_registration_form_fields() {
tml_add_form_field( ‘register’, ‘Cost_model_user_chose’, array(
‘type’ => ‘dropdown’,
‘label’ => ‘Select your correct option for billing ‘,
‘value’ => tml_get_request_value( ‘Cost_model_user_chose’, ‘post’ ),
‘options’ => array(
‘1’ => ‘Limited Option’,
‘2’ => ‘Unlimited Option’,
),
‘value’ => tml_get_request_value( ‘Cost_model_user_chose’, ‘post’ ),
‘priority’ => 15,) );
}
add_action( ‘init’, ‘add_tml_registration_form_fields’ );function tml_user_register( $user_id ) {
update_user_meta($user_id, ‘Count_reg_schoolhopper’, 0);
update_user_meta($user_id, ‘Count_hist_per_schoolhopper’, 0);
update_user_meta($user_id, ‘Count_view_per_area’, 0);
update_user_meta( $user_id, ‘Cost_model_user_chose’, sanitize_text_field(
$_POST[‘Cost_model_user_chose’]));
}
add_action( ‘user_register’, ‘tml_user_register’ );I expected the plugin to do this:
Update the new field with Limited Option or Unlimited Option but its spaces at the moment even though I chose Limited.
Instead it did this: (Include any error messages here)
My site is hosted with:
Hostking in SAThank you for taking your time out to help. I really appreciate it ??
The page I need help with: [log in to see the link]
- The topic ‘new Dropdown Field not updating’ is closed to new replies.