Registration Form frm_get_default

By: Jay Mac | Asked: 02/26/2024
ForumsCategory: General questionsRegistration Form frm_get_default
Jay Mac asked 10 months ago
I have had a formidable registration snippet working for at least 6 months. It stopped working in the last week ,soon after the registration add-on was updated to 2.12. I cannot prove it was the update. The code snippet listed in this paste bin link is very simple. I'm testing whether or not my form and specifically the stripeAccount field (id=213) are being processed more than once. I need the field to be processed only once. In the complete code I use the stripe SDK to create a stripe account and add it to a hidden field on the registration form that is added to the user meta. This was working fine. Now in the complete code two stripe accounts are created and only the 2nd account is added to the user meta. https://pastebin.com/NanMKFny My question is: Why is the form and the field being processed twice? (values are written to the debug.log (jm_write_log is my helper function) Follow up: How can I get the field to process only once? This is debug.log excerpts: 213 is the stripe field ID First Pass [27-Feb-2024 02:32:24 UTC] 36 4.0 Checking Field ID: 213, Is Default: 1, Stripe Account: [27-Feb-2024 02:32:24 UTC] 37 4.0 Stripe Field=ASEDFASFASDFASAFS [27-Feb-2024 02:32:24 UTC] 36 4.0 Checking Field ID: 213, Is Default: , Stripe Account: ASEDFASFASDFASAFS Second Pass [27-Feb-2024 02:33:36 UTC] 36 4.0 Checking Field ID: 213, Is Default: 1, Stripe Account: [27-Feb-2024 02:33:36 UTC] 37 4.0 Stripe Field=ASEDFASFASDFASAFS [27-Feb-2024 02:33:36 UTC] 36 4.0 Checking Field ID: 213, Is Default: , Stripe Account: ASEDFASFASDFASAFS  
1 Answers
Jay Mac answered 10 months ago
I deactivated all other code snippets, deactivated all other plugins except formidable and wordfence and experienced the same issue. I roiled back the registration add on plugin from 02/15 and it is now working. I still experience two triggers of the hook but my stripe account id I'm creating is now in user_meta. 

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right