Add pluginDo func for doing actions from plugin lifecycle