Home › Forums › Backend Issues (wp-admin) › Gravity Forms Integration with ACF Database addon › Reply To: Gravity Forms Integration with ACF Database addon
So I’ve played a bit with the code and I have managed to load form in the CPT admin page, when the form is submitted, I’m able to hook the action and run my custom code, but I have no way of getting the post ID where this submission took place:
add_action( 'gform_after_submission_1', 'do_something', 10, 2 );
function do_something( $entry, $form ) {
global $post;
...
Any idea why $post is empty or a way of getting the $post value? Thanks!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.