Manual:Hooks/User

There is no  'User' hook in MediaWiki. You might be looking for one of these hooks (i.e. all starting with 'User'):