Added support for `onPost` event for plugins