Skip to content

Filters Hooks ​

Filters let your code change a value before FluentEvent uses it: an API response, a length limit, a route path. FluentEvent has 11 filter hooks. Always return a value of the same type you receive.

Every hook name starts with fluent_event/. Nouns and verbs are separated by /: fluent_event/<noun>/<verb> for lifecycle actions, fluent_event/<noun>_api_response for response filters.

Pages ​

PageHooks
Events3
Calendars3
FluentCommunity1
System4

All Filters ​

HookPageDescription
fluent_event/admin_base_urlSystemFilters the base URL of the FluentEvent admin app.
fluent_event/calendar_api_responseCalendarsFilters one calendar's admin payload before it is returned.
fluent_event/calendar_title_max_lengthCalendarsFilters the longest calendar title accepted, in characters.
fluent_event/calendars_api_responseCalendarsFilters the admin calendars list before it is returned.
fluent_event/cloudflare_ip_rangesSystemFilters the Cloudflare IP ranges. A request from one of them supplies the visitor IP address in CF-Connecting-IP.
fluent_event/community/route_pathsFluentCommunityFilters the FluentCommunity portal routes that FluentEvent adds.
fluent_event/event_api_responseEventsFilters one event before the admin editor or the portal edit page loads it.
fluent_event/event_venue_max_lengthEventsFilters the longest venue name an event accepts, in characters.
fluent_event/events_api_responseEventsFilters the admin events list before it is returned.
fluent_event/is_rtlSystemFilters whether FluentEvent loads the right-to-left versions of its stylesheets.
fluent_event/trusted_proxiesSystemFilters the reverse proxies whose X-Forwarded-For header FluentEvent believes when it finds the visitor IP address.

Before You Filter ​

  • Return the same type you receive. The admin app reads the response filters directly, so a missing key breaks the screen.
  • Response filters run on admin requests only. The *_api_response filters wrap the manage_options endpoints, not the public pages.

FluentEvent developer documentation