fix plugin example for the changed user functions/hooks in 1.8
Merge pull request #520 from Incubaid/fix-plugin-example

fix plugin example for the changed user functions/hooks in 1.8