From 7009d4c621c55a3d97feea0168c1b672e27ee210 Mon Sep 17 00:00:00 2001 From: Viktor Miller Date: Wed, 14 Jan 2026 22:12:25 +0900 Subject: [PATCH] fix(07-01): use DOM monitoring for registration redirect - Changed from event listener to MutationObserver - Watches for success message text to appear in form - Monitors form DOM for changes and redirects when success appears - More reliable than waiting for custom events --- includes/class-formidable.php | 54 ++++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/includes/class-formidable.php b/includes/class-formidable.php index d8bf77e..d25fb14 100644 --- a/includes/class-formidable.php +++ b/includes/class-formidable.php @@ -274,25 +274,57 @@ class DDHH_JM_Formidable { return; } - $form_id = self::get_registration_form_id(); $redirect_url = home_url( '/anbieter-dashboard/' ); - - if ( ! $form_id ) { - return; - } ?>