Hooks & Filters

EventLayer ships WordPress-standard, PSR-4 code with a small, stable hook API. Pro plugs in through these same hooks — so can you.

Frontend filters

eventlayer_rule_is_active — final say on whether a rule runs on the current request. Receives the computed active state and the rule object.

add_filter( 'eventlayer_rule_is_active', function ( $active, $rule ) {
    return $active && ! is_user_logged_in();
}, 10, 2 );

eventlayer_frontend_config — filter the full array of rule configs before it’s localized to JS.

eventlayer_frontend_settings — filter the settings object (debug, autoTrackPageView).

Admin filters

eventlayer_parameter_target_types — register additional parameter target types (this is how Pro adds URL Parameter).

eventlayer_gating_provider — swap the gating provider that decides feature access and rule caps.

Admin actions

eventlayer_event_settings_fields and eventlayer_trigger_elements_fields — render extra fields in the respective meta boxes. Both receive the rule object and the post.