I have a problem with two things. I need to add some custom logic for two processes. First - right after inserting post (when db is updated), and second - right after updating post.
I think i need to use action hooks, but i can't find two different hooks for this operations