Hello @missveronicatv
Its work! Thanks!
add_action("um_registration_complete","um_change_date_format", 1, 2 );
function um_change_date_format( $user_id, $args ){
$date = get_user_meta( $user_id, "meta_key_!", true );
update_user_meta( $user_id, "meta_key_!", date_i18n("d.m.Y", strtotime( $date ) ) );
}
add_action("um_after_user_updated","um_update_date_format", 1, 2 );
function um_update_date_format( $user_id, $args ){
$date = get_user_meta( $user_id, "meta_key_!", true );
update_user_meta( $user_id, "meta_key_!", date_i18n("d.m.Y", strtotime( $date ) ) );
}
add_filter( "um_get_field_date", 'um_get_field_date_custom_format', 10, 1 );
function um_get_field_date_custom_format( $array ) {
$array['js_format'] = 'dd.mm.yyyy';
$array['format_custom'] = 'd.m.Y';
$array['format'] = 'd.m.Y';
return $array;
}
-
This reply was modified 1 year, 4 months ago by andriiwork.