PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Detect entry deletion

  1. I have created a form that will create a post upon submission. I also have a function that updates the form content and custom fields when a user updates the form entry, using the gform_post_submission hook. I would like to detect when a user deletes an entry and trash the post. Is there a way for me to detect this in that hook or in another hook? Thanks!

    Posted 13 years ago on Thursday April 7, 2011 | Permalink
  2. It doesn't appear we have a hook in place for the entry delete. I'll point this out to our lead developer and see what we can do to have one added. We'll have to see what information will need to be available to that hook (ex. post id if one was created, etc.) and then add the hook to the core code.

    Posted 13 years ago on Thursday April 7, 2011 | Permalink
  3. This hook does make sense. I have added it to our dev version, so it will be out on our next release. If you need this sooner, send me an email to alex@rocketgenius.com and I will send you our latest dev version.

    Posted 13 years ago on Friday April 8, 2011 | Permalink
  4. Awesome -- thanks for the quick response!

    Posted 13 years ago on Friday April 8, 2011 | Permalink