Add snippet for hooks