Wow, thanks so much @itsbhanusharma! This is perfect.
Curious: did you find that hook just digging through the plugin source, or is there a documentation on available actions and filters somewhere? (I didn’t manage to find one, but maybe I missed something)