eo_get_add_to_google_link Since 2.3
Located at includes/event-organiser-event-functions.php
Returns a the url which adds a particular occurrence of an event to a google calendar.
Returns an url which adds a particular occurrence of an event to a Google calendar. This function can only be used inside the loop. An entire series cannot be added to a Google calendar - however users can subscribe to your events. Please note that, unlike subscribing to events, changes made to an event will not be reflected on an event added to the Google calendar.
Add a 'add this event to Google' link:
<?php //Inside the loop $url = eo_get_add_to_google_link(); echo '<a href="'.esc_url($url).'" title="Click to add this event to a Google calendar"> Add to Google </a>'; ?>
||$post_id Post ID of the event.|
||The occurrence ID.|
Return value summary
||Url which adds event to a google calendar|