In the new Cura (2.1), you can create a plugin for almost everything (Views, tools, model loading / writing, etc).
The old Cura only had post processing 'plugins' (the new Cura also has them; https://github.com/nallath/PostProcessingPlugin).
The post processing of the new Cura is called when you save the g-code.