How to get ID of remote/deleted post?

How to get ID of remote/deleted post?
June 10th 19 at 14:58
2 answers
June 10th 19 at 15:00
Solution
I think we need to write the answer, maybe someone will need
hook before_delete_post, with the removal of the post of the basket or past the basket, passes to the function $post_id
wp_kama
June 10th 19 at 15:02
View in the cart the link to the post?
Question what, please describe in what situation it need to.
I have added to the post data in a custom table when deleting a post to delete the relevant row from a custom table - tiffany_Wunsch commented on June 10th 19 at 15:05
And the data is manually added to the table or something tightened (plugin, script)? - Emelie.Keebl commented on June 10th 19 at 15:08
the user submits the form, the script adds the data - tiffany_Wunsch commented on June 10th 19 at 15:11

Find more questions by tags WordPress