wp save_post && wp_trash_post?
-
Hi,
I have created a new custom type. I am using save_post action to execute some sql queries when a post of that type is published/saved. It actually creates new records in another table.
However i have noticed that when i trash a post of that type, the values of that record in the custom table get updated to NULL.
is my save_post function being executed when a post is trashed? If yes, is there any way to avoid this?
Thanks
- The topic ‘wp save_post && wp_trash_post?’ is closed to new replies.