gatherpress_calendar_url

Last updated July 11, 2026, Version 0.34

Filters the calendar URL for a single event.

Lets integrators rewrite the calendar URL (iCal / Outlook download, Google / Yahoo redirect) for an event before it reaches the front end — useful for routing calendar downloads through a CDN, swapping the host for a federation-friendly canonical, or appending tracking params.

Auto-generated Example

add_filter(
   'gatherpress_calendar_url',
    function(
        string $endpoint_url,
        WP_Post $post
    ) {
        // Your code here.
        return $endpoint_url;
    },
    10,
    2
);

Parameters

  • string $endpoint_url The full calendar URL.
  • WP_Post $post The corresponding event post.

Returns

string The filtered calendar URL.

Files

apply_filters(
                'gatherpress_calendar_url',
                $endpoint_url,
                $post
            )

← All Hooks