ID, 'event_begin', true ) ); } /** * Get the type. */ protected function get_type() { return $this->is_event_post ? 'Event' : Post::get_type(); } /** * Get the end time from the event object. */ protected function get_end_time(): ?string { $end_time = get_post_meta( $this->wp_object->ID, 'event_end', true ); return $end_time; } /** * Get the end time from the event object. */ protected function get_start_time(): string { $start_time = get_post_meta( $this->wp_object->ID, 'event_begin', true ); return $start_time; } /** * Get location from the event object. */ protected function get_location(): ?Place { return null; } }