Last active
March 5, 2020 16:03
-
-
Save joshfeck/b279ebe0a0fca9521ca035b513e298df to your computer and use it in GitHub Desktop.
Example code that shows how to change the date & time format for the Event Espresso 4 event editor date & time inputs
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 | |
//* Please do NOT include the opening php tag, except if you're starting with a blank file | |
function ee_change_dt_formats($formats) { | |
return array( | |
'date' => 'd.m.Y', | |
'time' => 'H:i' | |
); | |
} | |
add_filter( | |
'FHEE__espresso_events_Pricing_Hooks___set_hooks_properties__date_format_strings', | |
'ee_change_dt_formats' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment