Custom DatePicker
-
Hello All. I have a small problem with datepicker.
I want use custom datepicker.
I use this snippet for disable all UM DatePicker. And add my custom datepicker. All work fine, but when I choose date in my datepicker, date change only visual. When I click registration button I have error in date input label.The same problem if I edit the user profile and change the date, it also changes only visually. After pressing the update profile button, the date remains as it was.
add_filter( 'um_extend_field_classes', 'my_extend_field_classes', 10, 3 ); function my_extend_field_classes( $classes, $key, $data ) { if ( $data['type'] == 'date' ) { $classes .= 'customdatepicker '; } return $classes; } function unload_um_styles(){ wp_dequeue_style(array( "um_datetime", "um_datetime_date", "um_datetime_time", )); wp_deregister_style(array( "um_datetime", "um_datetime_date", "um_datetime_time", )); }; add_action("wp_print_styles","unload_um_styles");
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Custom DatePicker’ is closed to new replies.