Manual:initUserPreference.php
From Linux Web Expert
MediaWiki file: initUserPreference.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
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 |
---|---|---|
--target | Name of the user preference to initialize | <translate> Required</translate> |
--source | Name of the user preference to take the value from | <translate> Required</translate> |
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!