Skip to main content

Timeline for Filter DELETE REST API calls

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Oct 5, 2020 at 20:41 vote accept CaptainNemo
Oct 4, 2020 at 13:48 comment added Tom J Nowell There are filters that let you do this on a per post basis
Oct 4, 2020 at 12:56 answer added geouser timeline score: 2
Oct 4, 2020 at 12:48 comment added CaptainNemo @TomJNowell I am not sure how this can be done for every post has different authors.
Oct 4, 2020 at 12:47 comment added CaptainNemo @geouser I have thought about it but did not know how to stop the deletion if need be
Oct 3, 2020 at 16:32 comment added Tom J Nowell you could also tackle this via the capability filters, avoiding needing to deal with anything REST API related at all
Oct 3, 2020 at 16:31 comment added geouser Have you tried the pre_delete_post hook? developer.wordpress.org/reference/hooks/pre_delete_post
Oct 3, 2020 at 16:02 history asked CaptainNemo CC BY-SA 4.0