Skip to main content

Filter: gk/gravitycalendar/ics-export/external-sources

Filters the external ICS sources before they are fetched for the calendar subscription export.

Return an empty array to prevent all external fetches. Remove specific entries to block individual feeds from being downloaded.

Parameters​

NameTypeDescription
$sourcesarrayArray of source arrays, each with 'url', 'format', and 'color' keys.
$feedarrayThe calendar feed configuration.
$allowed_urlsarray|nullThe resolved list of external ICS URLs selected in the feed settings. Null when all URLs are allowed.

Since​

  • 2.14.0

Source​

Defined in includes/class-calendar-feed.php at line 6782