wp_object->ID, 'em_end_date', true ); if ( $timestamp ) { return \gmdate( 'Y-m-d\TH:i:s\Z', $timestamp ); } else { return null; } } /** * Get the end time from the event object. */ protected function get_start_time(): string { $timestamp = get_post_meta( $this->wp_object->ID, 'em_start_date', true ); if ( $timestamp ) { return \gmdate( 'Y-m-d\TH:i:s\Z', $timestamp ); } else { return ''; } } }