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
| Page | Hooks |
|---|---|
| Events | 3 |
| Calendars | 3 |
| FluentCommunity | 1 |
| System | 4 |
All Filters
| Hook | Page | Description |
|---|---|---|
fluent_event/admin_base_url | System | Filters the base URL of the FluentEvent admin app. |
fluent_event/calendar_api_response | Calendars | Filters one calendar's admin payload before it is returned. |
fluent_event/calendar_title_max_length | Calendars | Filters the longest calendar title accepted, in characters. |
fluent_event/calendars_api_response | Calendars | Filters the admin calendars list before it is returned. |
fluent_event/cloudflare_ip_ranges | System | Filters the Cloudflare IP ranges. A request from one of them supplies the visitor IP address in CF-Connecting-IP. |
fluent_event/community/route_paths | FluentCommunity | Filters the FluentCommunity portal routes that FluentEvent adds. |
fluent_event/event_api_response | Events | Filters one event before the admin editor or the portal edit page loads it. |
fluent_event/event_venue_max_length | Events | Filters the longest venue name an event accepts, in characters. |
fluent_event/events_api_response | Events | Filters the admin events list before it is returned. |
fluent_event/is_rtl | System | Filters whether FluentEvent loads the right-to-left versions of its stylesheets. |
fluent_event/trusted_proxies | System | Filters 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_responsefilters wrap themanage_optionsendpoints, not the public pages.