Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Last active March 5, 2020 16:03
Show Gist options
  • Save joshfeck/b279ebe0a0fca9521ca035b513e298df to your computer and use it in GitHub Desktop.
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
<?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