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