(Sorry this is now posted in the correct area)
I'm using GFs to allow users to create post content on my website.
I am trying to use the gform_post_submission hook to process the post data, and I'm trying to work out what the post id is of the newly created draft post.
I have dumped out $GLOBALS and I can see the post id in PHPMailer object as the {post_id} value. Surely there is a better way to get the newly created post id?
I can't believe this question has not been asked before.
Thanks.