Version 1.6.0 — Addon Extensibility Hooks #
Comprehensive filter hooks across all query and output paths, global post exclusion, per-post access flags, and a centralised AccessControl utility.
24 Feb 2026
Version 1.6.0 opens up every event query path to addons. Previously, only the calendar endpoint had filter hooks — now Bricks query loops, shortcodes, AJAX filtering, the public PHP API, and the stored occurrences layer all expose filters for modifying queries and results.
Extensibility Hooks
A full set of filter hooks across all query and output paths, giving addons fine-grained control over which events appear and how results are shaped.
- Bricks query loop filters —
lre_bricks_query_argsfor modifying WP_Query arguments andlre_bricks_occurrence_resultsfor modifying occurrence results before pagination. - Stored occurrences query filters —
lre_occurrence_store_query_args,lre_occurrence_store_query_where, andlre_occurrence_store_query_resultsfor fine-grained control over database-backed occurrence queries. - AJAX filter query hook —
lre_filter_query_argsfor modifying the query when users apply frontend filters. - Public API filters —
lre_get_events_argsandlre_get_events_resultsfor modifying the publiclre_get_events()function's input and output. - Shortcode output filter —
lre_shortcode_outputallows addons to modify or wrap the output of any LRE shortcode.
Global Post Exclusion
New lre_excluded_post_ids filter lets addons exclude posts from all event query paths with a single hook. Results are cached per request for zero performance impact — addons no longer need to hook into each query path individually.
Per-Post Access Flags
New lre_post_access_flags filter provides a standardised way for addons to attach access metadata (e.g., members-only status, required tiers) to individual posts. This gives frontend templates a consistent data shape for rendering access indicators like lock icons or membership badges.
AccessControl Utility
New centralised AccessControl helper class for merging excluded post IDs into both WP_Query and OccurrenceStore query arguments. Addons can use it to apply exclusions consistently without duplicating the merge logic.