Change date format on UM2.0
-
Hello,
how can I change the date format, which appears in the user profile when activating the > user meta > Registration Date and Last Login?
I tried some modifications but I did not succeed … I did some research and found the following code:
add_filter('um_profile_field_filter_hook__date','my_custom_sanitize_fields', 9999, 2 ); function my_custom_sanitize_fields( $value, $data ){ global $ultimatemember; if( $data['metakey'] == 'date-pickah' ){ $value = $ultimatemember->datetime->format( $value, "d M Y"); } return $value; }
But it did not work either…can someone help me with this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Change date format on UM2.0’ is closed to new replies.