I forgot about 4rd parameter in add_action indicating number of arguments.
This way I can get access to the data I need. Proper if statements should do the job.
Looks like there just need to be a 4rd parameter in add_action(name, function, order, number_of_accepted_params).
I’ve looked through all the filters in the documentation and I didn’t noticed anything useful for this. Maybe I’ve omitted something.
I need to have access to all post data in one time, not just content or ID or title and so on.
I can hook up to edit_post or post_updated action probably, but this doesn’t help with data insertion.
EDIT:
Maybe I could use POST_ID to get post by get_post function, but it would be option only if there is no database call.