Manual:Hooks/UserSaveSettings
Appearance
| UserSaveSettings | |
|---|---|
| Available from version 1.13.0 Called directly after user preferences (user_properties in the database) have been saved. Compare to the SaveUserOptions hook, which is called before. | |
| Define function: | public static function onUserSaveSettings( User $user ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"UserSaveSettings": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserSaveSettings"
}
}
|
| Called from: | File(s): User.php |
| Interface: | UserSaveSettingsHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserSaveSettings extensions.
Details
[edit]- $user: The User for which the options have been saved