You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're setting up your validator callback correctly. The form itself is not getting passed into the Submission object. How are you hooking in your registration callback (i.e., where are you calling wp_register_form())? Are you hooked into 'wp_forms_register'? My initial suspicion is that you're registering the form too late.
I was calling the wp_register_form() method, but i hadn't realised that i also needed to hook into the 'wp_register_form' action. Might be good to add more emphasis to these two steps in the documentation.
Hey,
i keep getting this error
when i run this form class in my plugin. Just wondering can you spot any error with how i register my validator method?
The text was updated successfully, but these errors were encountered: