Custom Automation Conditions
Custom automation conditions are registered with the elzo_forms_pro_automation_conditions filter. Each condition class must implement ElzoFormsPro\Automation\Conditions\ConditionInterface.
Interface methods
get_type(): stringget_label(): stringget_operators(): arrayevaluate(array $condition, array $context): bool
Register a condition
add_filter('elzo_forms_pro_automation_conditions', function ($conditions) {
$conditions[] = MyPlugin\Automation\Conditions\Customer_Status_Condition::class;
return $conditions;
});
Built-in condition types such as field, URL, user, cookie, page, and date/time are evaluated by Elzo Forms conditional logic. The condition registry is intended for third-party PRO add-ons that need new condition types.