Hi,
I have a problem.
I added:
add_action("gform_after_submission", "create_submission", 10, 2);
add_filter("gform_confirmation", "custom_confirmation", 10, 4);
In my create_submission() I added code so it will store the submitted data into a separate post_type, and after that, I want to redirect it to a url that looks like this: ?eventid=2310&key=68735ed2d8f88cea
But gform_confirmation loads and redirects before gform_after_submission. So what happened is that it redirects to an older lead, 1 lead before the new one instead to the newest lead.
How can I solve that?
Thanks!