events-manager: add summary
Some checks are pending
Deploy to https://wordpress-test.event-federation.eu/ / deploy (push) Waiting to run
Some checks are pending
Deploy to https://wordpress-test.event-federation.eu/ / deploy (push) Waiting to run
This commit is contained in:
parent
16a7dbccbd
commit
c79f496f38
1 changed files with 1 additions and 4 deletions
|
@ -158,11 +158,8 @@ class Events_Manager extends Post {
|
|||
} else {
|
||||
$excerpt = $this->get_content();
|
||||
}
|
||||
|
||||
$address = $this->em_event->get_location()->location_name;
|
||||
|
||||
$start_time = $this->get_start_time();
|
||||
|
||||
$start_time = strtotime( $this->get_start_time() );
|
||||
$datetime_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' );
|
||||
$start_time_string = wp_date( $datetime_format, $start_time );
|
||||
$summary = "📍 {$address}\n📅 {$start_time_string}\n\n{$excerpt}";
|
||||
|
|
Loading…
Reference in a new issue