events-manager: add summary
Some checks are pending
Deploy to https://wordpress-test.event-federation.eu/ / deploy (push) Waiting to run

This commit is contained in:
André Menrath 2024-01-05 15:14:25 +01:00
parent 16a7dbccbd
commit c79f496f38

View file

@ -158,11 +158,8 @@ class Events_Manager extends Post {
} else { } else {
$excerpt = $this->get_content(); $excerpt = $this->get_content();
} }
$address = $this->em_event->get_location()->location_name; $address = $this->em_event->get_location()->location_name;
$start_time = strtotime( $this->get_start_time() );
$start_time = $this->get_start_time();
$datetime_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); $datetime_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' );
$start_time_string = wp_date( $datetime_format, $start_time ); $start_time_string = wp_date( $datetime_format, $start_time );
$summary = "📍 {$address}\n📅 {$start_time_string}\n\n{$excerpt}"; $summary = "📍 {$address}\n📅 {$start_time_string}\n\n{$excerpt}";