Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add iCalendar "Conference" property to generated ics file. Event Espresso 4
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
function my_custom_ics_virtual_location(
) {
$event = $datetime->event();
if($event instanceof EE_Event) {
$venue = $event->venues(array('limit' => 1));
if (is_array($venue) && ! empty($venue)) {
$venue = array_shift($venue);
if ($venue instanceof EE_Venue) {
if (!empty($venue->virtual_url())) {
$ics_data['CONFERENCE;VALUE=URI'] = $venue->virtual_url();
return $ics_data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.