Manual:Hooks/LoadUserOptions

LoadUserOptions
Available from version 1.37.0
This hook is called when user options/preferences are being loaded from the database
Define function:
public static function onLoadUserOptions( UserIdentity $user, array &$options ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"LoadUserOptions": "MediaWiki\\Extension\\MyExtension\\Hooks::onLoadUserOptions"
	}
}
Called from: File(s): user/UserOptionsManager.php
Interface: LoadUserOptionsHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:LoadUserOptions extensions.


Details

edit

See also

edit