registering other hooks in plugin callback