< Manual:Hooks 
 
      | UserLoadDefaults | |
|---|---|
| Available from version 1.13.0 Called when loading a default user | |
| Define function: | public static function onUserLoadDefaults( $user, $name ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"UserLoadDefaults": "MyExtensionHooks::onUserLoadDefaults"
	}
}
 | 
| Called from: | File(s): User.php | 
| Interface: | UserLoadDefaultsHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserLoadDefaults extensions.
Details
- user: user object
- name: user name
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.