delete_post doesn't appear to be called when deleting via AJAX
|Reported by:||Viper007Bond||Owned by:|
I have a plugin that uses delete_post to do some stuff when a post is deleted. If I disable JS and click on a delete post link in Manage -> Posts, my function runs fine. However, if I delete the post via AJAX, my function doesn't seem to run.
Anyone able to reproduce? The AJAX calls wp_delete_post() which is where the hook is located, so I'm not quite sure why it's not working.
Change History (9)
comment:1 @Viper007Bond — 7 years ago
- Summary changed from delete_post doesn't appear to be used when deleting via AJAX to delete_post doesn't appear to be called when deleting via AJAX