iCalendar_Handler::filter_template_vars( TribeEventsViewsV2iCalendararray $template_vars, TribeEventsViewsV2View|null $view = null )
Add iCal feed link labels and URIs to the global template vars.
Contents
Usable in ical-link.php via the $subscribe_links global.
See also
Parameters
- $template_vars
-
(<span class="TribeEventsViewsV2iCalendararray">TribeEventsViewsV2iCalendararray) (Required) The View template variables.
- $view
-
(TribeEventsViewsV2View|null) (Optional) The View implementation.
Default value: null
Return
(array) The filtered template variables.
Source
File: src/Tribe/Views/V2/iCalendar/iCalendar_Handler.php
public function filter_template_vars( array $template_vars, View $view = null ) {
// Set up the section of the $template vars for the links.
$template_vars['subscribe_links'] = $this->get_subscribe_links( $view );
return $template_vars;
}
Changelog
| Version | Description |
|---|---|
| 5.12.0 | Introduced. |