Add callback to plugin