MediaWiki file: initUserPreference.php
Location: maintenance/
Source code: master 1.40.0 1.39.4 1.35.11
Classes: InitUserPreference

Details

initUserPreference.php is a maintenance script that initializes a user preference based on the value of another preference.

Options

Option Description Required
--targetName of the user preference to initializeRequired
--sourceName of the user preference to take the value fromRequired

Usage

php maintenance/initUserPreference.php target source
Terminal
$ php maintenance/initUserPreference.php --target visualeditor-hidebetawelcome --source rcfilters-rc-collapsed

Initializing 'visualeditor-hidebetawelcome' based on the value of 'rcfilters-rc-collapsed'
Processed 7 user(s)
Finished!

See also

  • Manual:$wgDefaultUserOptions
  • Manual:User preferences
  • Help:Preferences
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.