apply_filters( '‘tec_views_v2_subscribe_link_’ . self::get_slug() . ‘_visibility’', boolean $visible )
Allows link-specific filtering of the visibility of the Subscribe to Calendar and Add to Calendar links.
Contents
self::get_slug() is the slug of the particular instance of the Link. Accepted values:
- Google Calendar: gcal
- iCalendar: ical
- Outlook 365: outlook-365
- Outlook Live: outlook-live
- Export .ics file: ics
- Export Outlook .ics file: outlook-ics
Parameters
- $visible
-
(boolean) Whether to display the link.
Return
(boolean) $visible Whether to display the link.
More Information
self::get_slug() is the slug of the particular instance of the Link.
Accepted values:
- Google Calendar: gcal
- iCalendar: ical
- Outlook 365: outlook-365
- Outlook Live: outlook-live
- Export .ics file: ics
- Export Outlook .ics file: outlook-ics
For example, to hide the “Outlook 365” option, you can do the following:
add_filter( 'tec_views_v2_subscribe_link_outlook-365_visibility', '__return_false' );
Source
Changelog
| Version | Description |
|---|---|
| 5.14.0 | Introduced. |