tribe_get_single_ical_link( int $post_id = null )
Get iCal Link (Single)
Contents
Returns an iCal feed for a single event. Must be used in the loop.
Parameters
- $post_id
-
(int) (Optional) (optional) The post ID of the event. If not set, the current post ID will be used.
Default value: null
Return
(string) URL for iCal for single event.
Source
File: src/functions/template-tags/ical.php
function tribe_get_single_ical_link() {
$output = tribe( 'tec.iCal' )->get_ical_link( 'single' );
/**
* Filters the "Export Event" iCal link on single events.
*
* @param string $output The URL for the "Export Event" iCal link on single events.
*/
return apply_filters( 'tribe_get_single_ical_link', $output );
}
Changelog
| Version | Description |
|---|---|
| 6.1.1 | Introduced. |