Skip to main content
4 events
when toggle format what by license comment
Sep 28, 2019 at 17:05 comment added Luis Rivera Same here... after running some tests I've noticed when you delete the post 'post_parent' data gets removed from all related attachments.
Aug 15, 2014 at 16:21 comment added henrywright Just to note, following your basic logic, I had success when using before_delete_post rather than delete_post. Perhaps by the time delete_post is run, the post's metadata has been removed (which is needed for wp_delete_attachment to function properly).
Jun 26, 2011 at 22:49 vote accept Kovas
Jun 26, 2011 at 21:54 history answered Rarst CC BY-SA 3.0