[Plugins] Added support for hooks registratrion