Created
November 17, 2015 08:30
-
-
Save champsupertramp/c9d6c8b67dcaaed54ecc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change Date format in front-end | |
*/ | |
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; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment