Clanbite

clanbite_events_calendar_range_iso_for_view( string $view, string $anchor_ymd ): array{starts_after: string, starts_before: string}

UTC ISO-8601 bounds for the calendar range (matches client rangeForView / fetchEvents in event-calendar/view.js).

List view uses the same anchored calendar month as month view (prev/next shift months) so SSR, hydration, and client refetch stay aligned.

Parameters

$view (string) Required

month|week|day|list.

$anchor_ymd (string) Required

Y-m-d in site timezone.

Returns

array{starts_after: string, starts_before: string}

Defined in inc/events/event-block-ssr.php