Hi,
I'm using the registration add-on and want to change the date formate used.
Wordpress-Setting for date/time is j. F Y H:i, language is german
in my email-template I tried (the text in bold I'm using currently in the mail notification):
Datum: [event_post_meta key="_event_start_date"] ==> gives me 2026-02-19 18:00:00
Dat: [event_start_date_format] => empty output
code in functions.php:
// Custom Shortcode: Formatiertes Event-Datum
function format_event_start_date_shortcode() {
global $post;
// Originales Datumsfeld abrufen
$raw_date = $event->get_start_date();
if (empty($raw_date)) return '';
// In einen Zeitstempel umwandeln
$timestamp = strtotime($raw_date);
// Formatierung anpassen: 'j. F Y, H:i' = "13. Oktober 2025, 18:00"
$formatted_date = date_i18n('D, d. m. Y, H:i', $timestamp);
return $formatted_date;
}
add_shortcode('event_start_date_format', 'format_event_start_date_shortcode');
Datum [event_start_date_formatted] => empty output
Code in functions.php:// Custom Shortcode: Formatiertes Event-Datum
function formatted_event_start_date_shortcode() {
global $post;
// Originales Datumsfeld abrufen
$raw_date = get_post_meta($post->ID, '_event_start_date', true);
if (empty($raw_date)) return '';
// In einen Zeitstempel umwandeln
$timestamp = strtotime($raw_date);
// Formatierung anpassen: 'j. F Y, H:i' = "13. Oktober 2025, 18:00"
$formatted_date = date_i18n('D, d. m. Y, H:i', $timestamp);
return $formatted_date;
}
add_shortcode('event_start_date_formatted', 'formatted_event_start_date_shortcode');
can also provide temporary access to my staging site.
looking forward for your help,
thanks,
stefan