I need to execute a php function after a post delete button has been clicked, but before the deletion fires. There is a custom field value I need to capture and update a different post with.
Are there any hooks/actions that would allow me to do this?
Is there any documentation that you are following?
This is similar, but the delete button will be on the post content template, not on a form. So I'm unsure how I would target the deletion action, as this appears to target the form submission action.
Thanks Nigel, not sure how I missed that, yes I believe that will work.
I was planning on using the cred_delete_post_link shortcode on the content template. For this use case I will need to target two different post types, containers and shipments.