Automation Lifecycle Hooks

Elzo Forms PRO exposes automation lifecycle hooks for advanced integrations and debugging.

Before and after rules

add_action('elzo_forms_pro_automation_before_rule', function ($rule, $context) {
    // Runs before a rule is evaluated.
}, 10, 2);

add_action('elzo_forms_pro_automation_after_rule', function ($rule, $context, $rule_result) {
    // Runs after a rule is processed.
}, 10, 3);

Before and after actions

add_action('elzo_forms_pro_automation_before_action', function ($rule, $action_payload, $context) {
    // Runs before an action executes.
}, 10, 3);

add_action('elzo_forms_pro_automation_after_action', function ($rule, $action_payload, $context, $action_result) {
    // Runs after an action executes.
}, 10, 4);