< Manual:Hooks 
 
      | UserGetDefaultOptions | |
|---|---|
| Available from version 1.18.0 (r97365, codereview) Called after fetching the core default user options. | |
| Define function: | public static function onUserGetDefaultOptions( &$defaultOptions ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"UserGetDefaultOptions": "MyExtensionHooks::onUserGetDefaultOptions"
	}
}
 | 
| Called from: | File(s): User.php | 
| Interface: | UserGetDefaultOptionsHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserGetDefaultOptions extensions.
Details
This hook is run just before returning the options to the caller.
- &$defaultOptions: Array of preference keys and their default values.
See also
- Manual:$wgDefaultUserOptions
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.