Using gform_after_submission()? #442
Unanswered
psquirrel2018
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have successfully used this in non-timber/twig sites, but failing to get it to work in my FlyntWP theme. I have tried creating a new component where I use a WYSIWYG field to add the Gravity Form shortcode. Then in my functions.php, I tried to do an:
add_action('gform_after_submission_1', function ($entry, $form) {...}. No success.
So I tried bypassing the component route and simply adding this a new trip-inquiry-template.php file where I use add_action('gform_after_submission_1', 'get_user_interests', 10, 2); {...}. With this second route, I am at least getting the Timber Request object passed into my twig file where I can see the form's submission data, but when debugging, I can get the code to break at the add_action, but it never goes into my get_user_interests() function.
Any thoughts or advice?
Thanks,
Scott
Beta Was this translation helpful? Give feedback.
All reactions