Use hooks for undo/redo admin actions?

In general, no. Once you delete a post or a file you can’t “bring them back” just by reversing the admin actions, for that you will need to store the various states of the system and not only the hooks that have been used.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)