Title: Getting Inserted Post ID from hook
Last modified: January 20, 2022

---

# Getting Inserted Post ID from hook

 *  [streamworksaudio](https://wordpress.org/support/users/streamworksaudio/)
 * (@streamworksaudio)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/getting-inserted-post-id-from-hook/)
 * I am plan on writing a hook to perform some extra functions when a user submits
   the form. The form will be used to insert/edit a post. The $result argument that
   is sent with the hook holds the data that was in the form, however, is it possible
   to retrieve that post if the post that was inserted or updated?
 * Cheers

The topic ‘Getting Inserted Post ID from hook’ is closed to new replies.

 * ![](https://ps.w.org/jetformbuilder/assets/icon-256x256.png?rev=2998825)
 * [JetFormBuilder — Dynamic Blocks Form Builder](https://wordpress.org/plugins/jetformbuilder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetformbuilder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetformbuilder/)
 * [Active Topics](https://wordpress.org/support/plugin/jetformbuilder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetformbuilder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetformbuilder/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [streamworksaudio](https://wordpress.org/support/users/streamworksaudio/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/getting-inserted-post-id-from-hook/)
 * Status: not resolved